diff options
| author | ruki <[email protected]> | 2022-02-17 22:48:33 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-02-17 22:48:33 +0800 |
| commit | 192a777c4bf9cd434f67a7055d4196dfd650d03d (patch) | |
| tree | 314bf702af077251cdd5afa18e33198fee3f49a5 /xmake/rules/c++/modules | |
| parent | 168e70b7e06cfcfbadff763fed0d838b92130ad9 (diff) | |
fix search dir
Diffstat (limited to 'xmake/rules/c++/modules')
| -rw-r--r-- | xmake/rules/c++/modules/build_modules/msvc.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/build_modules/msvc.lua b/xmake/rules/c++/modules/build_modules/msvc.lua index f1062b044..dfaf56b41 100644 --- a/xmake/rules/c++/modules/build_modules/msvc.lua +++ b/xmake/rules/c++/modules/build_modules/msvc.lua @@ -43,7 +43,7 @@ function load_parent(target, opt) local sourcebatches = dep:sourcebatches() if sourcebatches and sourcebatches["c++.build.modules"] then local cachedir = path.join(dep:autogendir(), "rules", "modules", "cache") - target:add("cxxflags", {"/ifcSearchDir", os.args(cachedir)}, {force = true, expand = true}) + target:add("cxxflags", {"/ifcSearchDir", cachedir}, {force = true, expand = true}) end end end @@ -142,7 +142,7 @@ function build_with_batchjobs(target, batchjobs, sourcebatch, opt) count = count + 1 if count == sourcefiles_total and not cachedir then for _, modulefile in ipairs(modulefiles) do - target:add("cxxflags", {referenceflag, os.args(modulefile)}, {force = true, expand = false}) + target:add("cxxflags", {referenceflag, modulefile}, {force = true, expand = false}) end end end) @@ -151,7 +151,7 @@ function build_with_batchjobs(target, batchjobs, sourcebatch, opt) -- add module flags target:add("cxxflags", modulesflag) if cachedir then - target:add("cxxflags", {"/ifcSearchDir", os.args(cachedir)}, {force = true, expand = false}) + target:add("cxxflags", {"/ifcSearchDir", cachedir}, {force = true, expand = false}) end if stdifcdirflag then for _, toolchain_inst in ipairs(target:toolchains()) do |
