diff options
| author | Arthur LAURENT <[email protected]> | 2023-01-11 17:31:14 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-01-11 17:31:14 +0100 |
| commit | 98e4399340bca560915c8faef19a632840046a0e (patch) | |
| tree | 5d998779c531c71bcc2e2151110999bef403df83 /xmake/rules/c++/modules/modules_support/clang.lua | |
| parent | a70a59a68f39d9c9ba3538baa94dcce6132f1241 (diff) | |
use policies instead of target values
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 74b2f62cc..747c62166 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -84,7 +84,7 @@ function load(target) target:add("cxxflags", modulestsflag) end - if target:values("c++.clang.modules.stdmodules") then + if target:policy("c++.clang.module.stdmodules") then target:add("cxxflags", builtinmodulemapflag, {force = true}) target:add("cxxflags", implicitmodulesflag, {force = true}) else @@ -298,7 +298,7 @@ function generate_dependencies(target, sourcebatch, opt) end end - assert(not (has_std_modules and not target:values("c++.clang.modules.stdmodules")), + assert(not (has_std_modules and not target:policy("c++.clang.modules.stdmodules")), [[On llvm <= 16 standard C++ modules are not supported ; they can be emulated through clang modules and supported only on libc++ ; please add -stdlib=libc++ cxx flag or disable strict mode]]) |
