Add -fno-string-aliasing (issue #760)
This commit is contained in:
parent
2ec1bbd144
commit
23b1f6a3bd
|
|
@ -16,7 +16,10 @@ add_compile_options(-Wall -Wimplicit
|
|||
-Wstrict-aliasing=2 -Wmissing-format-attribute
|
||||
-Wdisabled-optimization -Werror-implicit-function-declaration)
|
||||
|
||||
add_compile_options(-Wno-strict-aliasing
|
||||
-Wno-format-zero-length -Wno-format-nonliteral)
|
||||
add_compile_options(-Wno-format-zero-length -Wno-format-nonliteral)
|
||||
|
||||
# There are lots of instances of union based aliasing in the code
|
||||
# that rely on the compiler not optimising them away, so disable it
|
||||
add_compile_options(-fno-strict-aliasing)
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX /opt/quake3)
|
||||
|
|
|
|||
|
|
@ -65,8 +65,10 @@ set(LBURG_SOURCES
|
|||
)
|
||||
|
||||
add_executable(q3asm ${Q3ASM_SOURCES})
|
||||
target_compile_options(q3asm PRIVATE -fno-strict-aliasing)
|
||||
set_output_dirs(q3asm)
|
||||
add_executable(q3lcc ${Q3LCC_SOURCES})
|
||||
target_compile_options(q3asm PRIVATE -fno-strict-aliasing)
|
||||
set_output_dirs(q3lcc)
|
||||
add_dependencies(q3lcc q3rcc q3cpp)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user