summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-11 00:33:37 +0800
committerruki <[email protected]>2023-01-11 00:33:37 +0800
commitc90409cf2bfca2531e27d32c6c79c8a151c04510 (patch)
treec736bbb03d9748efd09db929d72847d9a785af88 /xmake/modules
parent4dcacbb3d778002d4b8604d016b07c17d6ec23dc (diff)
fix defines with space #3271
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/cl.lua2
-rw-r--r--xmake/modules/core/tools/fasm.lua2
-rw-r--r--xmake/modules/core/tools/gcc.lua2
-rw-r--r--xmake/modules/core/tools/ml.lua2
-rw-r--r--xmake/modules/core/tools/nasm.lua2
-rw-r--r--xmake/modules/core/tools/nim.lua2
-rw-r--r--xmake/modules/core/tools/nvcc.lua2
-rw-r--r--xmake/modules/core/tools/rc.lua2
-rw-r--r--xmake/modules/core/tools/sdcc.lua2
-rw-r--r--xmake/modules/core/tools/tcc.lua2
-rw-r--r--xmake/modules/core/tools/windres.lua2
-rw-r--r--xmake/modules/core/tools/yasm.lua2
-rw-r--r--xmake/modules/core/tools/zig.lua2
13 files changed, 13 insertions, 13 deletions
diff --git a/xmake/modules/core/tools/cl.lua b/xmake/modules/core/tools/cl.lua
index 12b1be79c..cc19978b9 100644
--- a/xmake/modules/core/tools/cl.lua
+++ b/xmake/modules/core/tools/cl.lua
@@ -264,7 +264,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/fasm.lua b/xmake/modules/core/tools/fasm.lua
index a69cadaa3..178eeb6de 100644
--- a/xmake/modules/core/tools/fasm.lua
+++ b/xmake/modules/core/tools/fasm.lua
@@ -44,7 +44,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-d" .. macro
+ return {"-d" .. macro}
end
-- make the compile arguments list
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 5817b0269..a53502e33 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -246,7 +246,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/ml.lua b/xmake/modules/core/tools/ml.lua
index 59749974c..451954601 100644
--- a/xmake/modules/core/tools/ml.lua
+++ b/xmake/modules/core/tools/ml.lua
@@ -87,7 +87,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/nasm.lua b/xmake/modules/core/tools/nasm.lua
index b4b623b61..f7e5c9792 100644
--- a/xmake/modules/core/tools/nasm.lua
+++ b/xmake/modules/core/tools/nasm.lua
@@ -68,7 +68,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/nim.lua b/xmake/modules/core/tools/nim.lua
index e663c7a55..bf6e48d19 100644
--- a/xmake/modules/core/tools/nim.lua
+++ b/xmake/modules/core/tools/nim.lua
@@ -53,7 +53,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "--define:" .. macro
+ return {"--define:" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/nvcc.lua b/xmake/modules/core/tools/nvcc.lua
index 76f16fca6..ade7fc936 100644
--- a/xmake/modules/core/tools/nvcc.lua
+++ b/xmake/modules/core/tools/nvcc.lua
@@ -208,7 +208,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/rc.lua b/xmake/modules/core/tools/rc.lua
index c3e5f5c12..5ef03b912 100644
--- a/xmake/modules/core/tools/rc.lua
+++ b/xmake/modules/core/tools/rc.lua
@@ -60,7 +60,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/sdcc.lua b/xmake/modules/core/tools/sdcc.lua
index c991d888e..624b23454 100644
--- a/xmake/modules/core/tools/sdcc.lua
+++ b/xmake/modules/core/tools/sdcc.lua
@@ -131,7 +131,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/tcc.lua b/xmake/modules/core/tools/tcc.lua
index fc4d7b5e6..84eae246d 100644
--- a/xmake/modules/core/tools/tcc.lua
+++ b/xmake/modules/core/tools/tcc.lua
@@ -86,7 +86,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/windres.lua b/xmake/modules/core/tools/windres.lua
index 9acb34515..2b306f110 100644
--- a/xmake/modules/core/tools/windres.lua
+++ b/xmake/modules/core/tools/windres.lua
@@ -29,7 +29,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/yasm.lua b/xmake/modules/core/tools/yasm.lua
index 488996e51..2979f1d49 100644
--- a/xmake/modules/core/tools/yasm.lua
+++ b/xmake/modules/core/tools/yasm.lua
@@ -56,7 +56,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the undefine flag
diff --git a/xmake/modules/core/tools/zig.lua b/xmake/modules/core/tools/zig.lua
index 8fb7c0b9f..c7889e522 100644
--- a/xmake/modules/core/tools/zig.lua
+++ b/xmake/modules/core/tools/zig.lua
@@ -45,7 +45,7 @@ end
-- make the define flag
function nf_define(self, macro)
- return "-D" .. macro
+ return {"-D" .. macro}
end
-- make the optimize flag