summaryrefslogtreecommitdiff
path: root/xmake/languages/c++/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-01-24 22:39:30 +0800
committerruki <[email protected]>2024-01-25 12:09:59 +0800
commitfec77395b2f96bac0bde5cd4d79115fd6d4b377e (patch)
tree7d7cec18c2db28b41c0c547a72dfed366a0b439b /xmake/languages/c++/xmake.lua
parentc6445c7e401b348c5ca8afce229a1f4f45e9cf61 (diff)
split c and c++ languages
Diffstat (limited to 'xmake/languages/c++/xmake.lua')
-rw-r--r--xmake/languages/c++/xmake.lua11
1 files changed, 4 insertions, 7 deletions
diff --git a/xmake/languages/c++/xmake.lua b/xmake/languages/c++/xmake.lua
index 22a69a417..487746303 100644
--- a/xmake/languages/c++/xmake.lua
+++ b/xmake/languages/c++/xmake.lua
@@ -20,11 +20,11 @@
language("c++")
add_rules("c++")
- set_sourcekinds {cc = ".c", cxx = {".cpp", ".cc", ".cxx", ".mpp", ".mxx", ".cppm", ".ixx", ".c++"}}
- set_sourceflags {cc = {"cflags", "cxflags"}, cxx = {"cxxflags", "cxflags"}}
+ set_sourcekinds {cxx = {".cpp", ".cc", ".cxx", ".mpp", ".mxx", ".cppm", ".ixx", ".c++"}}
+ set_sourceflags {cxx = {"cxxflags", "cxflags"}}
set_targetkinds {binary = "ld", static = "ar", shared = "sh"}
set_targetflags {binary = "ldflags", static = "arflags", shared = "shflags"}
- set_langkinds {c = "cc", cxx = "cxx"}
+ set_langkinds {cxx = "cxx"}
set_mixingkinds("cc", "cxx", "as", "mrc")
on_load("load")
@@ -49,7 +49,6 @@ language("c++")
, "target.frameworks"
, "target.exceptions"
, "target.encodings"
- , "target.pcheader"
, "target.pcxxheader"
, "target.forceincludes"
, "toolchain.includedirs"
@@ -118,9 +117,8 @@ language("c++")
config =
{
{category = "Cross Complation Configuration/Compiler Configuration" }
- , {nil, "cc", "kv", nil, "The C Compiler" }
, {nil, "cxx", "kv", nil, "The C++ Compiler" }
- , {nil, "cpp", "kv", nil, "The C Preprocessor" }
+ , {nil, "cpp", "kv", nil, "The C/C++ Preprocessor" }
, {category = "Cross Complation Configuration/Linker Configuration" }
, {nil, "ld", "kv", nil, "The Linker" }
@@ -129,7 +127,6 @@ language("c++")
, {nil, "ranlib", "kv", nil, "The Static Library Index Generator" }
, {category = "Cross Complation Configuration/Compiler Flags Configuration" }
- , {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" }