-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add first version of the C extension
Still WIP.
- Loading branch information
Jb Aviat
committed
Jun 27, 2016
1 parent
70669c8
commit 3002957
Showing
10 changed files
with
1,309 additions
and
36 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,16 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
|
||
git submodule init | ||
git submodule update | ||
|
||
python py_mini_racer/ffi/v8_build.py | ||
|
||
python setup.py bdist_wheel | ||
|
||
|
||
clang++ -c mini_racer_extension.cc -I py_mini_racer/ffi/v8 -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -Wall -g -rdynamic -std=c++0x -fpermissive -fno-common -o mini_racer.o | ||
clang++ -dynamic -bundle -o mini_racer_extension.bundle mini_racer.o -stdlib=libstdc++ -fstack-protector -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -lobjc -lpthread -lpthread -ldl -lobjc ./py_mini_racer/ffi/v8/v8/out/native/libv8_base.a | ||
|
Oops, something went wrong.