summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-04 22:57:08 +0800
committerruki <[email protected]>2022-08-04 22:57:08 +0800
commit339c50ca90f0f4fac4c8f3083386eb770f18f06a (patch)
treea4446813035d331dcc9a87454ab5ffad202236e3 /xmake/rules/c++/modules/modules_support
parent18d9a291ea2988fcef98d754b11824f2567c1020 (diff)
fix typo
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index ae6eaf3cc..0095444ed 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -333,7 +333,7 @@ function get_emitmoduleflag(target)
if emitmoduleflag == nil then
local compinst = target:compiler("cxx")
if compinst:has_flags("-emit-module", "cxxflags", {flagskey = "clang_emit_module"}) then
- emitmoduleflag = " -emit-module"
+ emitmoduleflag = "-emit-module"
end
assert(emitmoduleflag, "compiler(clang): does not support c++ module!")
_g.emitmoduleflag = emitmoduleflag or false