mirror of
https://agent.ghink.cloud/wb2osz/direwolf
synced 2025-04-11 09:08:34 +00:00
Note for future experiment.
This commit is contained in:
parent
368bc42337
commit
18c65f48a8
@ -205,10 +205,16 @@ if (C_CLANG OR C_GCC)
|
|||||||
# I also took out -Wextra because it spews out so much noise a serious problem was not noticed.
|
# I also took out -Wextra because it spews out so much noise a serious problem was not noticed.
|
||||||
# It might go back in someday when I have more patience to clean up all the warnings.
|
# It might go back in someday when I have more patience to clean up all the warnings.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# TODO:
|
||||||
|
# Try error checking -fsanitize=bounds-strict -fsanitize=leak
|
||||||
|
# Requires libubsan and liblsan, respectively.
|
||||||
|
|
||||||
###set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wvla -ffast-math -ftree-vectorize -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE ${EXTRA_FLAGS}")
|
###set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wvla -ffast-math -ftree-vectorize -D_XOPEN_SOURCE=600 -D_DEFAULT_SOURCE ${EXTRA_FLAGS}")
|
||||||
if(FREEBSD)
|
if(FREEBSD)
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wvla -ffast-math -ftree-vectorize -D_DEFAULT_SOURCE ${EXTRA_FLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wvla -ffast-math -ftree-vectorize -D_DEFAULT_SOURCE ${EXTRA_FLAGS}")
|
||||||
else()
|
else()
|
||||||
|
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wvla -ffast-math -ftree-vectorize -D_GNU_SOURCE -fsanitize=bounds-strict ${EXTRA_FLAGS}")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wvla -ffast-math -ftree-vectorize -D_GNU_SOURCE ${EXTRA_FLAGS}")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wvla -ffast-math -ftree-vectorize -D_GNU_SOURCE ${EXTRA_FLAGS}")
|
||||||
endif()
|
endif()
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user