mirror of https://github.com/wb2osz/direwolf.git
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…
Reference in New Issue