summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorruki <[email protected]>2022-08-09 00:35:20 +0800
committerruki <[email protected]>2022-08-09 00:35:20 +0800
commit8d2cfef3b5814c32d08e89d7d17d4242b203331b (patch)
tree31e1c8a27c980adecd8c69df5e47b93ae160a3c7 /xmake/rules/c++/modules/modules_support
parenta7754666add7c76fe8a255e6c84800fa0cb44320 (diff)
fix check for clang/headerunits
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index f11350764..226756d6c 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -163,13 +163,10 @@ end
-- generate target stl header units for batchjobs
function generate_stl_headerunits_for_batchjobs(target, batchjobs, headerunits, opt)
local compinst = target:compiler("cxx")
-
- -- get cachedirs
local stlcachedir = common.stlmodules_cachedir(target)
-
- -- get headerunits flags
local modulecachepathflag = get_modulecachepathflag(target)
local modulefileflag = get_modulefileflag(target)
+ assert(has_headerunitsupport(target), "compiler(clang): does not support c++ header units!")
-- build headerunits
local projectdir = os.projectdir()
@@ -200,6 +197,7 @@ function generate_stl_headerunits_for_batchcmds(target, batchcmds, headerunits,
local stlcachedir = common.stlmodules_cachedir(target)
local modulecachepathflag = get_modulecachepathflag(target)
local modulefileflag = get_modulefileflag(target)
+ assert(has_headerunitsupport(target), "compiler(clang): does not support c++ header units!")
-- build headerunits
local projectdir = os.projectdir()