-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghostx: add aarch64/arm64 builds (#52967)
* ghostx: add aarch64/arm64 builds Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * ghostx: Patch the Makefile to be able to use custom CC and CXX Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Add '-D_LIBCPP_DISABLE_AVAILABILITY' for OSX Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Add libgomp/llvm-openmp as host deps Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Set C++ standard to 14 Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Try without libgomp/llvm-openmp Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> * Re-add libgomp/llvm-openmp Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --------- Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
Showing
4 changed files
with
57 additions
and
6 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 |
---|---|---|
@@ -1,6 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -xe | ||
|
||
cd ./src/ | ||
|
||
make | ||
mkdir -p $PREFIX/bin | ||
CC="${CC}" CXX="${CXX}" CC_FLAGS="${CFLAGS}" make -j"${CPU_COUNT}" | ||
|
||
cp ghostx $PREFIX/bin | ||
mkdir -p $PREFIX/bin | ||
install -m 755 ghostx $PREFIX/bin |
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,39 @@ | ||
diff --git i/src/Makefile w/src/Makefile | ||
index 8844e0a..3248657 100644 | ||
--- i/src/Makefile | ||
+++ w/src/Makefile | ||
@@ -1,9 +1,9 @@ | ||
LAST_CC=g++ | ||
-CC=gcc | ||
-CXX=g++ | ||
+CC?=gcc | ||
+CXX?=g++ | ||
COMMON_FLAGS=-Wall -Wextra -pedantic -fopenmp -O3 | ||
INCLUDES = -I ../ext/boost | ||
-CC_FLAGS=${COMMON_FLAGS} | ||
+CC_FLAGS?=${COMMON_FLAGS} | ||
LDLIBS =-lm -fopenmp | ||
|
||
ifeq ($(PROFILE), Yes) | ||
@@ -69,18 +69,18 @@ OBJS += $(CPP_SRC:%.cpp=%.o) | ||
all:ghostx | ||
|
||
ghostx: $(OBJS) | ||
- $(LAST_CC) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) | ||
+ $(CXX) -std=c++14 -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS) | ||
|
||
.c.o: | ||
$(CC) -c $(CC_FLAGS) $< -o $@ $(INCLUDES) | ||
|
||
.cpp.o: | ||
- $(CXX) -c $(CC_FLAGS) $< -o $@ $(INCLUDES) | ||
+ $(CXX) -std=c++14 -c $(CC_FLAGS) $< -o $@ $(INCLUDES) | ||
|
||
|
||
|
||
.PHONY: clean | ||
clean: | ||
- rm ghostx | ||
rm -f *.o | ||
rm -f *~ | ||
+ rm ghostx |
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