瀏覽代碼

Fix arm64 build when using Clang

The commit b5a8055b5c should target GCC builds only as
-flax-vector-conversions has different behaviour in Clang and is
currently making the build fail.

Signed-off-by: Filipe Rinaldi <[email protected]>
(cherry picked from commit 2841144096e046b57214d4be8b7ef17f0077414d)
Filipe Rinaldi 2 年之前
父節點
當前提交
45c76995dd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/raycast/SCsub

+ 1 - 1
modules/raycast/SCsub

@@ -90,7 +90,7 @@ if env["builtin_embree"]:
 
     if not env.msvc:
         # Flags synced with upstream gnu.cmake.
-        if env["arch"] == "arm64" and env["platform"] == "x11":
+        if env["arch"] == "arm64" and env["platform"] == "x11" and not env["use_llvm"]:
             env_thirdparty.Append(CXXFLAGS=["-flax-vector-conversions"])
 
         env_thirdparty.Append(