Ver Fonte

Linux fixes

Brian Fiete há 6 anos atrás
pai
commit
bc261e50c9
3 ficheiros alterados com 21 adições e 3 exclusões
  1. 4 3
      .gitignore
  2. 17 0
      bin/build.sh
  3. 0 0
      extern/llvm_build.sh

+ 4 - 3
.gitignore

@@ -1,15 +1,16 @@
+*.lst
+*.vcxproj.user
 */llvm-*
 */llvm_*
 */x64/*
 **/Debug*/*
 **/Release*/*
-**/Build/*
+**/build/*
 **/.vs/*
 lld-link.exe
 stats/
 IDE/dist/*
 dist/*
-*.lst
-*.vcxproj.user
+BeefySysLib/third_party/*
 BeefTools/RandoCode/*
 jbuild*/

+ 17 - 0
bin/build.sh

@@ -7,6 +7,23 @@ cd "$(dirname "$0")"
 # exit when any command fails
 set -e
 
+### Dependencies ###
+
+if [ ! -f ../BeefySysLib/third_party/libffi/Makefile ]; then
+	echo Building libffi...
+	cd ../BeefySysLib/third_party/libffi
+	./configure
+	make
+	cd "$(dirname "$0")"
+fi
+
+if [ ! -d ../extern/llvm_linux_8_0_0 ]; then
+	echo Building LLVM...
+	cd ../extern
+	./llvm_build.sh
+	cd "$(dirname "$0")"
+fi
+
 ### LIBS ###
 
 cd ..

+ 0 - 0
extern/llvm_build.sh