Skip to content

Commit 14368cd

Browse files
authored
Merge pull request #2085 from mccode-dev/suppress-mtune-native
Fix for ppc64 Linux (via conda)
2 parents c6c8c8b + b15127a commit 14368cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/Modules/PlatformDefaults.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function( detect_platform_variables resultvarname )
249249
set( MCCODE_CFLAGS "${MCCODE_CFLAGS} -I\$\{CONDA_PREFIX\}/include -Wl,-rpath,\$\{CONDA_PREFIX\}/lib -L\$\{CONDA_PREFIX\}/lib" )
250250
endif()
251251

252-
foreach( flag "-fno-PIC" "-fPIE" "-flto" "-O3" "-mtune=native" "-march=native" "-fno-math-errno" "-ftree-vectorize" "-g" "-DNDEBUG" "-D_POSIX_SOURCE" "-std=c99" "-lm" )
252+
foreach( flag "-fno-PIC" "-fPIE" "-flto" "-O3" "-march=native" "-fno-math-errno" "-ftree-vectorize" "-g" "-DNDEBUG" "-D_POSIX_SOURCE" "-std=c99" "-lm" )
253253
#NB: plethora of "unset(tmp_test_c_flag_result ...)" statements below is
254254
#added for safety, to prevent CMake's CACHE system to give unpredictable
255255
#results.

0 commit comments

Comments
 (0)