Bug 1731304 [wpt PR 30802] - Update wpt metadata, a=testonly
[gecko.git] / build / build-clang / compiler-rt-cross-compile.patch
blob330d4a2907a075cce321d738c9f10877827b377c
1 Add `-target x86_64-apple-darwin' to the compiler-rt overridden CFLAGS
3 diff --git a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
4 index 28d398672..aac68bf36 100644
5 --- a/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
6 +++ b/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
7 @@ -265,7 +265,7 @@ endfunction()
8 macro(darwin_add_builtin_libraries)
9 set(DARWIN_EXCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Darwin-excludes)
11 - set(CFLAGS "-fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer")
12 + set(CFLAGS "-fPIC -O3 -fvisibility=hidden -DVISIBILITY_HIDDEN -Wall -fomit-frame-pointer -target ${LLVM_DEFAULT_TARGET_TRIPLE} -isysroot ${CMAKE_OSX_SYSROOT} -I${CMAKE_OSX_SYSROOT}/usr/include")
13 set(CMAKE_C_FLAGS "")
14 set(CMAKE_CXX_FLAGS "")
15 set(CMAKE_ASM_FLAGS "")