summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support/msvc.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-01-14 15:52:28 +0100
committerArthur LAURENT <[email protected]>2023-01-14 15:44:42 +0100
commit3f907fe73417fc308626adcc2c619da804c60b04 (patch)
tree0129e114248f98680c874df9a176420b7b6e1b92 /xmake/rules/c++/modules/modules_support/msvc.lua
parent020786b7f39a682ef6486e0a342d2c02f8c42308 (diff)
add policy to force enable fallback module dependency scanner
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/msvc.lua')
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/msvc.lua b/xmake/rules/c++/modules/modules_support/msvc.lua
index 23e5d765f..3d4e03db2 100644
--- a/xmake/rules/c++/modules/modules_support/msvc.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc.lua
@@ -197,7 +197,7 @@ function generate_dependencies(target, sourcebatch, opt)
end
local jsonfile = path.join(outputdir, path.filename(sourcefile) .. ".json")
- if scandependenciesflag then
+ if scandependenciesflag and not target:policy("build.c++.msvc.fallbackscanner") then
local flags = {jsonfile, sourcefile, "-Fo" .. target:objectfile(sourcefile)}
_compile(target, table.join(common_flags, flags), sourcefile)
else