authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-05-15 16:21:47-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2018-05-15 16:21:47-04:00
log3625df25d6fe0b11e4c1c33454b621ec8a8c10ba
tree2378ebb05a137800416a056931309b34b7a24be0
parent74b10c08d1bd0b64aa8175dff6dec178c7c3bbee
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

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

1 files changed, 1 insertions(+), 1 deletions(-)

CMakeLists.txt+1-1
...@@ -196,7 +196,7 @@ else()...@@ -196,7 +196,7 @@ else()
196 if(MSVC)196 if(MSVC)
197 set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -D_CRT_SECURE_NO_WARNINGS /w")197 set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -D_CRT_SECURE_NO_WARNINGS /w")
198 else()198 else()
199 set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -fno-exceptions -fno-rtti -Wno-comment")199 set(ZIG_LLD_COMPILE_FLAGS "-std=c++11 -fno-exceptions -fno-rtti -Wno-comment -Wno-class-memaccess -Wno-unknown-warning-option")
200 endif()200 endif()
201 set_target_properties(embedded_lld_lib PROPERTIES201 set_target_properties(embedded_lld_lib PROPERTIES
202 COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}202 COMPILE_FLAGS ${ZIG_LLD_COMPILE_FLAGS}