Set -fno-exceptions in CXXFLAGS

pull/355/head
Anuraag Agrawal 2 years ago
parent 9b9708e9eb
commit 6dc3a08be1

@ -48,5 +48,5 @@ ENV AR llvm-ar-${LLVM_VERSION}
ENV RANLIB llvm-ranlib-${LLVM_VERSION} ENV RANLIB llvm-ranlib-${LLVM_VERSION}
ENV CFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot ENV CFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot
ENV CXXFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot ENV CXXFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot -fno-exceptions
ENV LDFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot ENV LDFLAGS --target=wasm32-wasi --sysroot=/wasi-sysroot

@ -28,6 +28,8 @@ set(CMAKE_CXX_COMPILER_TARGET ${triple})
set(CMAKE_ASM_COMPILER_TARGET ${triple}) set(CMAKE_ASM_COMPILER_TARGET ${triple})
SET(CMAKE_SYSROOT /wasi-sysroot) SET(CMAKE_SYSROOT /wasi-sysroot)
set(CMAKE_CXX_FLAGS_INIT "-fno-exceptions")
# Don't look in the sysroot for executables to run during the build # Don't look in the sysroot for executables to run during the build
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Only look in the sysroot (not in the host paths) for the rest # Only look in the sysroot (not in the host paths) for the rest

@ -21,6 +21,8 @@ set(CMAKE_CXX_COMPILER_TARGET ${triple})
set(CMAKE_ASM_COMPILER_TARGET ${triple}) set(CMAKE_ASM_COMPILER_TARGET ${triple})
SET(CMAKE_SYSROOT /wasi-sysroot) SET(CMAKE_SYSROOT /wasi-sysroot)
set(CMAKE_CXX_FLAGS_INIT "-fno-exceptions")
# Don't look in the sysroot for executables to run during the build # Don't look in the sysroot for executables to run during the build
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Only look in the sysroot (not in the host paths) for the rest # Only look in the sysroot (not in the host paths) for the rest

@ -35,6 +35,8 @@ set(CMAKE_C_COMPILER_TARGET ${triple})
set(CMAKE_CXX_COMPILER_TARGET ${triple}) set(CMAKE_CXX_COMPILER_TARGET ${triple})
set(CMAKE_ASM_COMPILER_TARGET ${triple}) set(CMAKE_ASM_COMPILER_TARGET ${triple})
set(CMAKE_CXX_FLAGS_INIT "-fno-exceptions")
# Don't look in the sysroot for executables to run during the build # Don't look in the sysroot for executables to run during the build
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Only look in the sysroot (not in the host paths) for the rest # Only look in the sysroot (not in the host paths) for the rest

@ -32,6 +32,8 @@ set(CMAKE_C_COMPILER_TARGET ${triple})
set(CMAKE_CXX_COMPILER_TARGET ${triple}) set(CMAKE_CXX_COMPILER_TARGET ${triple})
set(CMAKE_ASM_COMPILER_TARGET ${triple}) set(CMAKE_ASM_COMPILER_TARGET ${triple})
set(CMAKE_CXX_FLAGS_INIT "-fno-exceptions")
# Don't look in the sysroot for executables to run during the build # Don't look in the sysroot for executables to run during the build
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
# Only look in the sysroot (not in the host paths) for the rest # Only look in the sysroot (not in the host paths) for the rest

Loading…
Cancel
Save