Mercurial > projects > ddmd
annotate build.sh @ 191:52188e7e3fb5
Fixed deprecated features, now compiles with DMD2.058
Also changed Array allocation policy:
Now doesn't reallocate but malloc's, followed by a memcpy (no free).
(this fixes a crash while compiling druntime. Same bug in dmd)
author | korDen@korDen-pc |
---|---|
date | Sun, 25 Mar 2012 03:11:12 +0400 |
parents | 9f4e5ac4f0a3 |
children |
rev | line source |
---|---|
14
2cc604139636
Implemented Linux support for ddmd. Some parts are a bit hacky to just "get it working", that said, druntime and phobos compile, and unittests pass.
Robert Clipsham <robert@octarineparrot.com>
parents:
diff
changeset
|
1 #!/bin/sh |
171
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
2 # This has exactly the same semantics as the old buildscript, |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
3 # but supports extra optional command line arguments. |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
4 # Too see the supported args, run: ./build.sh --help |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
5 |
184
9f4e5ac4f0a3
One step closer to building on posix.
Jacob Carlborg <doob@me.com>
parents:
171
diff
changeset
|
6 rdmd buildHelper.d "$@" |
171
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
7 |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
8 # Old buildscript: |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
9 ##i686-unknown-linux-gnu-g++ -c bridge/bridge.cpp -obridge.o |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
10 #g++ -c bridge/bridge.cpp -obridge.o |
b080e62b16b4
Enhanced buildscript to simplify compiling for new users
Abscissa
parents:
154
diff
changeset
|
11 #dmd -debug -gc @commands.linux.txt && dmd -release -O -inline @commands.linux.txt #|& head |