Просмотр исходного кода

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]>
Filipe Rinaldi 2 лет назад
Родитель
Сommit
2841144096
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      modules/raycast/SCsub

+ 1 - 1
modules/raycast/SCsub

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