-
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.
odgi: Apply a patch to be able to build on Linux ARM64
Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
- Loading branch information
Showing
2 changed files
with
28 additions
and
0 deletions.
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
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,26 @@ | ||
diff --git i/CMakeLists.txt w/CMakeLists.txt | ||
index dc6e9b44..1c34379c 100644 | ||
--- i/CMakeLists.txt | ||
+++ w/CMakeLists.txt | ||
@@ -52,7 +52,7 @@ endif() | ||
|
||
# Set optimization through command line; see INSTALL.md | ||
if (${CMAKE_BUILD_TYPE} MATCHES Release) | ||
- set(EXTRA_FLAGS "-Ofast -march=native -pipe -msse4.2 -funroll-all-loops") # -fprofile-generate=../pgo") | ||
+ set(EXTRA_FLAGS "-Ofast -march=native -pipe -funroll-all-loops") # -fprofile-generate=../pgo") | ||
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG") # reset CXX_FLAGS to be able to replace -O3 with -Ofast | ||
endif () | ||
|
||
diff --git i/src/main.cpp w/src/main.cpp | ||
index 0300dbd1..68e512d4 100644 | ||
--- i/src/main.cpp | ||
+++ w/src/main.cpp | ||
@@ -29,7 +29,7 @@ void odgi_help(char** argv) { | ||
|
||
// We make sure to compile main for the lowest common denominator architecture. | ||
// This works on GCC and Clang. But we have to declare main and then define it. | ||
-int main(int argc, char *argv[]) __attribute__((__target__("arch=x86-64"))); | ||
+//int main(int argc, char *argv[]) __attribute__((__target__("arch=x86-64"))); | ||
|
||
int main(int argc, char *argv[]) { | ||
// set a higher value for tcmalloc warnings |