diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-07-07 17:43:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-07-07 17:47:32 -0700 |
commit | dfae95bffdbc3e22467bc7e64e75672c963d65e5 (patch) | |
tree | fa5cd0325565f4ddb2b84776500ad84534e407d8 | |
parent | f7c5bc2c24e489b7bc01179011f132fc265a713c (diff) |
add helper script to build libcxx natively
-rwxr-xr-x | system/lib/build_cxx_natively.sh | 3 | ||||
-rw-r--r-- | system/lib/test.cpp | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/system/lib/build_cxx_natively.sh b/system/lib/build_cxx_natively.sh new file mode 100755 index 00000000..1cf2749c --- /dev/null +++ b/system/lib/build_cxx_natively.sh @@ -0,0 +1,3 @@ +# useful for testing purposes, compare native build to js build +~/Dev/fastcomp/hybridbuild/Release+Asserts/bin/clang -std=c++0x -nostdinc++ test.cpp libcxxabi/src/*.cpp libcxx/*.cpp -Ilibcxxabi/include -I../include/libcxx -lpthread -g + diff --git a/system/lib/test.cpp b/system/lib/test.cpp new file mode 100644 index 00000000..653f9cc7 --- /dev/null +++ b/system/lib/test.cpp @@ -0,0 +1,14 @@ +#include <stdio.h> +#include <time.h> + +int clock_gettime(clockid_t clk_id, struct timespec *tp) { + printf("BAD\n"); + return 0; +} + +/* +int main() { + printf("ok\n"); +} +*/ + |