diff options
| author | ruki <[email protected]> | 2018-03-02 00:45:23 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-03-01 22:32:20 +0800 |
| commit | d96c1bb9d0bc3c6c7f44fe7fffda6c020a31019b (patch) | |
| tree | f9024b65923743539c90a41c864f29ecbcfa118f /xmake/languages/c++/xmake.lua | |
| parent | d9ab5105223c61f1ffdf31db06726d4fd45f8390 (diff) | |
add cuda language
Diffstat (limited to 'xmake/languages/c++/xmake.lua')
| -rw-r--r-- | xmake/languages/c++/xmake.lua | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/xmake/languages/c++/xmake.lua b/xmake/languages/c++/xmake.lua index 87a6256bd..34ed07fc8 100644 --- a/xmake/languages/c++/xmake.lua +++ b/xmake/languages/c++/xmake.lua @@ -26,10 +26,10 @@ language("c++") -- set source file kinds - set_sourcekinds {cc = ".c", cxx = {".cc", ".cpp", ".cxx"}, cu = ".cu"} + set_sourcekinds {cc = ".c", cxx = {".cc", ".cpp", ".cxx"}} -- set source file flags - set_sourceflags {cc = {"cflags", "cxflags"}, cxx = {"cxxflags", "cxflags"}, cu = {"cuflags"}} + set_sourceflags {cc = {"cflags", "cxflags"}, cxx = {"cxxflags", "cxflags"}} -- set target kinds set_targetkinds {binary = "ld", static = "ar", shared = "sh"} @@ -38,10 +38,10 @@ language("c++") set_targetflags {binary = "ldflags", static = "arflags", shared = "shflags"} -- set language kinds - set_langkinds {c = "cc", cxx = "cxx", cu = "cu"} + set_langkinds {c = "cc", cxx = "cxx"} -- set mixing kinds - set_mixingkinds("cc", "cxx", "cu", "as", "mrc") + set_mixingkinds("cc", "cxx", "as", "mrc") -- on load on_load("load") @@ -150,7 +150,6 @@ language("c++") {category = "Cross Complation Configuration/Compiler Configuration" } , {nil, "cc", "kv", nil, "The C Compiler" } , {nil, "cxx", "kv", nil, "The C++ Compiler" } - , {nil, "cu", "kv", nil, "The Cuda Compiler" } , {category = "Cross Complation Configuration/Linker Configuration" } , {nil, "ld", "kv", nil, "The Linker" } @@ -161,7 +160,6 @@ language("c++") , {nil, "cflags", "kv", nil, "The C Compiler Flags" } , {nil, "cxflags", "kv", nil, "The C/C++ compiler Flags" } , {nil, "cxxflags", "kv", nil, "The C++ Compiler Flags" } - , {nil, "cuflags", "kv", nil, "The Cuda Compiler Flags" } , {category = "Cross Complation Configuration/Linker Flags Configuration" } , {nil, "ldflags", "kv", nil, "The Binary Linker Flags" } |
