diff options
| author | Arthur LAURENT <[email protected]> | 2023-01-14 15:52:28 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-01-14 15:44:42 +0100 |
| commit | 3f907fe73417fc308626adcc2c619da804c60b04 (patch) | |
| tree | 0129e114248f98680c874df9a176420b7b6e1b92 /tests/projects/c++/modules/test_headerunits.lua | |
| parent | 020786b7f39a682ef6486e0a342d2c02f8c42308 (diff) | |
add policy to force enable fallback module dependency scanner
Diffstat (limited to 'tests/projects/c++/modules/test_headerunits.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_headerunits.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua index 6a942e583..3b664c96c 100644 --- a/tests/projects/c++/modules/test_headerunits.lua +++ b/tests/projects/c++/modules/test_headerunits.lua @@ -21,19 +21,22 @@ function main(t) elseif is_host("linux") then local gcc = find_tool("gcc", {version = true}) if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then - os.exec("xmake f -c --yes") + -- gcc trtbd dependency detection doesn't support header units atm + os.exec("xmake f --policies=build.c++.gcc.fallbackscanner -c --yes") _build() end local clang = find_tool("clang", {version = true}) if clang and clang.version then if semver.compare(clang.version, "15.0") >= 0 then os.exec("xmake clean -a") - os.exec("xmake f --toolchain=clang -c") + -- clang-scan-deps dependency detection doesn't support header units atm + os.exec("xmake f --toolchain=clang --policies=build.c++.clang.fallbackscanner -c") _build() -- elseif semver.compare(clang.version, "15.0") >= 0 then -- there is currently a bug on llvm git that prevent to build STL header units https://github.com/llvm/llvm-project/issues/58540 -- os.exec("xmake clean -a") - -- os.exec("xmake f --toolchain=clang --cxxflags=\"-stdlib=libc++\" -c") + -- clang-scan-deps dependency detection doesn't support header units atm + -- os.exec("xmake f --toolchain=clang --policies=build.c++.modules.fallbackscanner.clang --cxxflags=\"-stdlib=libc++\" -c") -- _build() end end |
