aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-05-15 16:21:47 -0400
committerGitHub <noreply@github.com>2018-05-15 16:21:47 -0400
commit3625df25d6fe0b11e4c1c33454b621ec8a8c10ba (patch)
tree2378ebb05a137800416a056931309b34b7a24be0
parent74b10c08d1bd0b64aa8175dff6dec178c7c3bbee (diff)
downloadzig-3625df25d6fe0b11e4c1c33454b621ec8a8c10ba.tar.gz
zig-3625df25d6fe0b11e4c1c33454b621ec8a8c10ba.zip
build: add flag to LLD to fix gcc 8 build (#1013)
* build: add flag to LLD to fix gcc 8 build * build: add -Wno-unknown-warning-option to work around older gcc
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0aad51c7bc..bda576347e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -196,7 +196,7 @@ else()
if(MSVC)
set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -D_CRT_SECURE_NO_WARNINGS /w")
else()
- set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -fno-exceptions -fno-rtti -Wno-comment")
+ set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -fno-exceptions -fno-rtti -Wno-comment -Wno-class-memaccess -Wno-unknown-warning-option")
endif()
set_target_properties(embedded_lld_lib PROPERTIES
COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}