aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsystem/lib/build_cxx_natively.sh3
-rw-r--r--system/lib/test.cpp14
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");
+}
+*/
+