Skip to content

Commit

Permalink
add clang to allowed tools for ninja, xcode, gmake, cmake, jcdb, qbs,…
Browse files Browse the repository at this point in the history
… example
  • Loading branch information
KageKirin committed Jun 12, 2020
1 parent a877ab9 commit 8d31f25
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/actions/cmake/_cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ newaction {
valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Bundle" },
valid_languages = { "C", "C++" },
valid_tools = {
cc = { "gcc" },
cc = { "gcc", "clang" },
},
onsolution = function(sln)
premake.generate(sln, "CMakeLists.txt", premake.cmake.workspace)
Expand Down
2 changes: 1 addition & 1 deletion src/actions/example/_example.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
-- is specified with the /cc and /dotnet command-line options. You can find
-- the tool interfaces at src/tools.
valid_tools = {
cc = { "msc", "gcc", "ow" },
cc = { "msc", "gcc", "clang", "ow" },
dotnet = { "mono", "msnet", "pnet" },
},

Expand Down
2 changes: 1 addition & 1 deletion src/actions/jcdb/_jcdb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ newaction {

valid_kinds = { "ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Bundle" },
valid_languages = { "C", "C++" },
valid_tools = { cc = { "gcc" } },
valid_tools = { cc = { "gcc", "clang" } },

onsolution = function(sln)
local jsonpath = path.join(sln.location, "compile_commands.json")
Expand Down
2 changes: 1 addition & 1 deletion src/actions/make/_make.lua
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
valid_languages = { "C", "C++", "C#", "Vala", "Swift" },

valid_tools = {
cc = { "gcc", "ghs" },
cc = { "gcc", "clang", "ghs" },
dotnet = { "mono", "msnet", "pnet" },
valac = { "valac" },
swift = { "swift" },
Expand Down
2 changes: 1 addition & 1 deletion src/actions/ninja/_ninja.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ newaction
valid_kinds = {"ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Bundle"},
valid_languages = {"C", "C++", "Swift"},
valid_tools = {
cc = { "gcc" },
cc = { "gcc", "clang" },
swift = { "swift" },
},

Expand Down
2 changes: 1 addition & 1 deletion src/actions/qbs/_qbs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ newaction
valid_kinds = {"ConsoleApp", "WindowedApp", "StaticLib", "SharedLib", "Bundle"},
valid_languages = {"C", "C++"},
valid_tools = {
cc = { "gcc", "msc" },
cc = { "gcc", "clang", "msc" },
},

-- Solution and project generation logic
Expand Down
2 changes: 1 addition & 1 deletion src/actions/xcode/xcode10.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
valid_languages = { "C", "C++" },

valid_tools = {
cc = { "gcc" },
cc = { "gcc", "clang" },
},

valid_platforms = {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/xcode/xcode8.lua
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@
valid_languages = { "C", "C++" },

valid_tools = {
cc = { "gcc" },
cc = { "gcc", "clang" },
},

valid_platforms = {
Expand Down
2 changes: 1 addition & 1 deletion src/actions/xcode/xcode9.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
valid_languages = { "C", "C++" },

valid_tools = {
cc = { "gcc" },
cc = { "gcc", "clang" },
},

valid_platforms = {
Expand Down

0 comments on commit 8d31f25

Please sign in to comment.