From 59ad2808f83e7e4da2d52991bf47abe537bec642 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 23 Jan 2023 12:30:50 +0100 Subject: clang missing flag --- xmake/rules/c++/modules/modules_support/clang.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.3.1