-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.hxml
59 lines (55 loc) · 1.38 KB
/
build.hxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#-cp demo
#-D !llvm
#--run Main
--next
-cp demo
-main Main
-js bin-llvm/Main.ll
-D llvm
--macro llvmaxe.IRGenerator.use()
-dce full
#-dce std
#--connect 6000
# clang
-cmd echo "clang ->"
-cmd clang -S -Wattributes -fno-unroll-loops -emit-llvm -o foo.ll -c foo.c
#-fobjc-arc
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llvm-as foo.ll
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llc foo.bc -march x86-64
-cmd gcc -o foo foo.s
#-cmd ./foo
# clean
-cmd rm -f foo.bc
-cmd rm -f foo.s
-cmd rm -f foo
# llvm ir
-cmd echo "llvm ir ->"
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llvm-as hello.ll
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llc hello.bc -march x86-64
-cmd gcc -o hello hello.s
-cmd chmod a+x ./hello
-cmd ./hello
# clean
-cmd rm -f hello.bc
-cmd rm -f hello.s
-cmd rm -f hello
# haxe llvm
-cmd echo "haxe llvm ->"
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llvm-as bin-llvm/Main.ll
-cmd /Volumes/10.10/clang+llvm-3.4.2-x86_64-apple-darwin10.9/bin/llc bin-llvm/Main.bc -march x86-64
-cmd gcc -o bin-llvm/Main bin-llvm/Main.s
#-cmd time ./bin-llvm/Main
-cmd ./bin-llvm/Main
# clean
-cmd rm -f ./bin-llvm/Main.bc
-cmd rm -f ./bin-llvm/Main.s
-cmd rm -f ./bin-llvm/Main
--next
-cp demo
-main Main
-D !llvm
-js bin/hx.js
-dce full
--connect 6000
-cmd echo "js ->"
-cmd /usr/bin/env node bin/hx.js