File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -618,25 +618,6 @@ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
618
618
SET (CMAKE_EXE_LINKER_FLAGS "" )
619
619
620
620
SET (CMAKE_C_LINK_EXECUTABLE "" )
621
-
622
- elseif (TOOLCHAIN STREQUAL "NONE" )
623
- ADD_COMPILE_OPTIONS (-fshort-wchar -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -ffunction-sections -fdata-sections -fno-common -Wno-address -fpie -fno-asynchronous-unwind-tables -flto -DUSING_LTO -Wno-maybe-uninitialized -Wno-uninitialized -Wno-builtin-declaration-mismatch -Wno-nonnull-compare -Werror-implicit-function-declaration )
624
- if (CMAKE_BUILD_TYPE STREQUAL "Debug" )
625
- ADD_COMPILE_OPTIONS (-g )
626
- endif ()
627
- if (GCOV STREQUAL "ON" )
628
- ADD_COMPILE_OPTIONS (--coverage -fprofile-arcs -ftest-coverage )
629
- endif ()
630
- SET (OPENSSL_FLAGS -include base.h -Wno-error=maybe-uninitialized -Wno-error=format -Wno-format -Wno-error=unused-but-set-variable -Wno-cast-qual -Wno-error=implicit-function-declaration )
631
- SET (CMOCKA_FLAGS -std=gnu99 -Wpedantic -Wall -Wshadow -Wmissing-prototypes -Wcast-align -Werror=address -Wstrict-prototypes -Werror=strict-prototypes -Wwrite-strings -Werror=write-strings -Werror-implicit-function-declaration -Wpointer-arith -Werror=pointer-arith -Wdeclaration-after-statement -Werror=declaration-after-statement -Wreturn-type -Werror=return-type -Wuninitialized -Werror=uninitialized -Werror=strict-overflow -Wstrict-overflow=2 -Wno-format-zero-length -Wmissing-field-initializers -Wformat-security -Werror=format-security -fno-common -Wformat -fno-common -fstack-protector-strong -Wno-cast-qual )
632
-
633
- SET (CMAKE_LINKER ${CMAKE_C_COMPILER} )
634
- SET (CMAKE_EXE_LINKER_FLAGS "-flto -Wno-error -no-pie" )
635
- if (GCOV STREQUAL "ON" )
636
- SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} --coverage -lgcov -fprofile-arcs -ftest-coverage" )
637
- endif ()
638
- SET (CMAKE_C_LINK_EXECUTABLE "<CMAKE_LINKER> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -Wl,--start-group <LINK_LIBRARIES> -Wl,--end-group" )
639
-
640
621
endif ()
641
622
642
623
if (NOT TOOLCHAIN STREQUAL "NIOS2_GCC" )
You can’t perform that action at this time.
0 commit comments