Advertisement
Guest User

checkout-compile-dmd-v2.063.2

a guest
Aug 29th, 2013
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. #!/bin/sh
  2. mkdir testdir
  3. cd testdir
  4. git clone https://github.com/D-Programming-Language/dmd.git
  5. git clone https://github.com/D-Programming-Language/druntime.git
  6. git clone https://github.com/D-Programming-Language/phobos.git
  7.  
  8. cd dmd
  9. git checkout v2.063.2
  10. cd ../druntime
  11. git checkout v2.063.2
  12. cd ../phobos
  13. git checkout v2.063.2
  14.  
  15. cd ../dmd/src
  16. make MODEL=32 -f posix.mak
  17. echo '[Environment]' > dmd.conf
  18. 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
  19. cd ../../druntime
  20. make MODEL=32 DMD=../dmd/src/dmd -f posix.mak
  21. cd ../phobos
  22. make MODEL=32 DMD=../dmd/src/dmd -f posix.mak
  23. cd ..
  24.  
  25. echo 'import std.stdio; void main(){ writeln("Hi"); }' > test.d
  26. dmd/src/dmd -m32 test.d
  27. ./test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement