Skip to content

Commit b15127a

Browse files
committed
Remove -mtune=native as (e.g. conda) usually has sets a reasonable local default (e.g. -mtune=haswell)
1 parent c6c8c8b commit b15127a

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)