aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-11-16 13:39:43 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-11-16 13:39:43 +0200
commita7513ddd6250dada74d241abf8551828b16cb554 (patch)
tree4d0962f764d3a96ac57c9a7a3f6b4f5582b96b55 /libbuild2/cc
parent279384475749326570fa0ac38b57764322d30c73 (diff)
Extend comment on Clang's -fmodules-embed-all-files use
Diffstat (limited to 'libbuild2/cc')
-rw-r--r--libbuild2/cc/compile-rule.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbuild2/cc/compile-rule.cxx b/libbuild2/cc/compile-rule.cxx
index 82282eb..5ac07bc 100644
--- a/libbuild2/cc/compile-rule.cxx
+++ b/libbuild2/cc/compile-rule.cxx
@@ -7511,6 +7511,9 @@ namespace build2
// files. In our case this file may be transient (.ii). Plus,
// it won't play nice with distributed compilation.
//
+ // Note that this sort of appears to be the default from Clang
+ // 17, but not quite, see llvm-project issued #72383.
+ //
args.push_back ("-Xclang");
args.push_back ("-fmodules-embed-all-files");
@@ -7519,6 +7522,9 @@ namespace build2
// files. In our case this file may be transient (.ii). Plus,
// it won't play nice with distributed compilation.
//
+ // Note that this sort of appears to be the default from Clang
+ // 17, but not quite, see llvm-project issued #72383.
+ //
args.push_back ("-Xclang");
args.push_back ("-fmodules-embed-all-files");