diff --git a/src/actions/make/make_cpp.lua b/src/actions/make/make_cpp.lua index 7d58dfd6..f4d97d93 100644 --- a/src/actions/make/make_cpp.lua +++ b/src/actions/make/make_cpp.lua @@ -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