summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-01-23 12:30:50 +0100
committerArthur LAURENT <[email protected]>2023-01-23 12:30:50 +0100
commit59ad2808f83e7e4da2d52991bf47abe537bec642 (patch)
tree86533599566f43141e1c230c7fd66b5437b8a558 /xmake/rules/c++/modules/modules_support
parentbfc401680246307bb59874c53fb4c6bb2369255b (diff)
clang missing flag
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index b341df0d4..c88a844a8 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -277,7 +277,8 @@ function generate_dependencies(target, sourcebatch, opt)
for _, flag in ipairs(compflags) do
if flag == "-m64" or flag == "-g" or flag:startswith("-stdlib") or flag:startswith("-m") or
(flag:startswith("-f") and not flag:startswith("-fmodule") and not flag:startswith("-fno-implicit-module-maps")) or
- flag:startswith("-D") or flag:startswith("-U") or flag:startswith("-I") or flag:startswith("-isystem") or next_flag then
+ flag:startswith("-D") or flag:startswith("-U") or flag:startswith("-I") or flag:startswith("-isystem") or next_flag or
+ flag:startswith("-iframework") then
table.insert(flags, flag)
next_flag = false
if flag:startswith("-isystem") then