-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix octopus binary "invalid instruction" (-march too new) (#11822)
* This attempts to make the binary more portable by only requiring Sandybridge. * Fix march set to native
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -rNu octopus-0.5.2-beta.orig/src/CMakeLists.txt octopus-0.5.2-beta/src/CMakeLists.txt | ||
--- octopus-0.5.2-beta.orig/src/CMakeLists.txt 2018-10-29 08:36:32.000000000 -0600 | ||
+++ octopus-0.5.2-beta/src/CMakeLists.txt 2018-11-13 15:54:06.000000000 -0700 | ||
@@ -639,7 +639,7 @@ | ||
else() | ||
add_executable(octopus main.cpp ${OCTOPUS_SOURCES} ${INCLUDE_SOURCES}) | ||
target_compile_features(octopus PRIVATE cxx_thread_local) | ||
- target_compile_options(octopus PRIVATE -ffast-math -funroll-loops -march=native) | ||
+ target_compile_options(octopus PRIVATE -ffast-math -funroll-loops) | ||
target_include_directories(octopus PUBLIC ${octopus_SOURCE_DIR}/lib ${octopus_SOURCE_DIR}/src) | ||
target_link_libraries(octopus tandem ranger) | ||
if (NOT BUILD_SHARED_LIBS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters