Support "--cc" command line option

This commit is contained in:
stream 2015-12-27 03:22:51 +09:00
parent e440d1d8a5
commit fef741eebb

View File

@ -85,7 +85,7 @@
-- identify the toolset used by this configurations (would be nicer if
-- this were computed and stored with the configuration up front)
local toolset = premake.tools[cfg.toolset or "gcc"]
local toolset = premake.tools[_OPTIONS.cc or cfg.toolset or "gcc"]
if not toolset then
error("Invalid toolset '" .. cfg.toolset .. "'")
end