Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- mkdir testdir
- cd testdir
- git clone https://github.com/D-Programming-Language/dmd.git
- git clone https://github.com/D-Programming-Language/druntime.git
- git clone https://github.com/D-Programming-Language/phobos.git
- cd dmd
- git checkout v2.063.2
- cd ../druntime
- git checkout v2.063.2
- cd ../phobos
- git checkout v2.063.2
- cd ../dmd/src
- make MODEL=32 -f posix.mak
- echo '[Environment]' > dmd.conf
- echo 'DFLAGS=-L-L%@P%/../../phobos/generated/linux/release/32 -L-L%@P%/../../druntime/lib -I%@P%/../../phobos -I%@P%/../../druntime/src -L--no-warn-search-mismatch -L--export-dynamic' >> dmd.conf
- cd ../../druntime
- make MODEL=32 DMD=../dmd/src/dmd -f posix.mak
- cd ../phobos
- make MODEL=32 DMD=../dmd/src/dmd -f posix.mak
- cd ..
- echo 'import std.stdio; void main(){ writeln("Hi"); }' > test.d
- dmd/src/dmd -m32 test.d
- ./test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement