This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/tests/actions/make/cpp/test_clang.lua
Nitin Gupta c3d0e094a8 Fix clang test case
Test asserts that CXX is set to clang++ (and not clang)
2013-10-08 17:30:04 -07:00

40 lines
646 B
Lua

--
-- tests/actions/make/cpp/test_clang.lua
-- Test Clang support in Makefiles.
-- Copyright (c) 2013 Jason Perkins and the Premake project
--
local suite = test.declare("make_clang")
local make = premake.make
local cpp = premake.make.cpp
local project = premake.project
--
-- Setup
--
local sln, prj
function suite.setup()
sln = test.createsolution()
toolset "clang"
prj = premake.solution.getproject(sln, 1)
end
--
-- Make sure that the correct compilers are used.
--
function suite.usesCorrectCompilers()
make.cppConfigs(prj)
test.capture [[
ifeq ($(config),debug)
CC = clang
CXX = clang++
AR = ar
]]
end