Skip to content

Commit

Permalink
update compile flags
Browse files Browse the repository at this point in the history
  • Loading branch information
brglng committed Dec 14, 2021
1 parent ad351f0 commit c8e82f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/Modules/wavTargetProperties.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ if(NOT DEFINED wav_c_flags)
set(wav_c_flags ${wav_c_flags} CACHE INTERNAL "C compiler flags")
endif()

set(wav_compile_options_release -fomit-frame-pointer -march=native -mtune=native)
if(${CMAKE_C_COMPILER_ID} STREQUAL "MSVC")
elseif(${CMAKE_C_COMPILER_ID} STREQUAL "GNU")
set(wav_compile_options_release -fomit-frame-pointer -march=native -mtune=native -fvisibility=hidden)
elseif(${CMAKE_C_COMPILER_ID} MATCHES "^.*Clang$")
set(wav_compile_options_release -fomit-frame-pointer -fvisibility=hidden)
endif()

0 comments on commit c8e82f7

Please # to comment.