-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nightly ci by specify different flags for debug and release build…
…s. (#93) * Fix nightly ci by specify different flags for debug and release builds. * Fix build failure (cherry picked from commit fff163c)
- Loading branch information
1 parent
20fb7f5
commit 7520d3e
Showing
2 changed files
with
20 additions
and
4 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,13 @@ | ||
GCC_FLAGS=-std=c++17 -DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX | ||
ifeq ($(DEBUG),1) | ||
GCC_FLAGS+=-O0 -DV8_ENABLE_CHECKS | ||
else | ||
GCC_FLAGS+=-O2 | ||
endif | ||
|
||
build: | ||
g++ -I./v8include -fPIC -c -o2 -g v8_c_api.cpp -o c8_c_api.o -std=c++17 -DV8_COMPRESS_POINTERS -DV8_ENABLE_SANDBOX | ||
g++ -I./v8include -fPIC -c -g v8_c_api.cpp -o c8_c_api.o $(GCC_FLAGS) | ||
ar r libv8.a c8_c_api.o | ||
|
||
clean: | ||
rm -rf *.o *.a | ||
rm -rf *.o *.a |