Skip to content

Commit 4181cbc

Browse files
Merge pull request #15 from SylvainCorlay/mtune-generic
mtune-generic does not work on ppc
2 parents 5385773 + 1bbaee8 commit 4181cbc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ target_compile_features(xwebrtc PRIVATE cxx_std_14)
140140

141141
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Intel")
142142
target_compile_options(xwebrtc PUBLIC -Wunused-parameter -Wextra -Wreorder)
143-
if (DISABLE_ARCH_NATIVE)
144-
target_compile_options(xwebrtc PUBLIC -mtune=generic)
145-
else()
143+
if (NOT DISABLE_ARCH_NATIVE)
146144
target_compile_options(xwebrtc PUBLIC -march=native)
147145
endif()
148146

0 commit comments

Comments
 (0)