Add Windows support and clean up toolchain #10
							
								
								
									
										6
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								build.sh
									
									
									
									
									
								
							| @@ -18,6 +18,7 @@ GENERIC="generic-w64-mingw32" | ||||
|  | ||||
| # Default Configuration | ||||
| BUILD_JOBS=0 | ||||
| BUILD_MINIMAL=0 | ||||
| CLEAN_BUILD=0 | ||||
| ENABLE_LLVM_ASSEMBLY=0 | ||||
| LLVM_DYNAMIC_LINK=ON | ||||
| @@ -286,7 +287,7 @@ prepare_environment() | ||||
| # Prints usage help | ||||
| print_usage() | ||||
| { | ||||
|     echo "USAGE: ${0} [--clean] [--enable-llvm-assembly] [--jobs=N] [--static-llvm] [--target={linux,windows}]" | ||||
|     echo "USAGE: ${0} [--clean] [--enable-llvm-assembly] [--jobs=N] [--minimal] [--static-llvm] [--target={linux,windows}]" | ||||
|     exit 1 | ||||
| } | ||||
|  | ||||
| @@ -392,6 +393,9 @@ while [ $# -gt 0 ]; do | ||||
|             # Sets number of CPU cores used for compilation | ||||
|             BUILD_JOBS="${1#*=}" | ||||
|             ;; | ||||
|         --minimal) | ||||
|             BUILD_MINIMAL=1 | ||||
|             ;; | ||||
|         --static-llvm) | ||||
|             # Compiles LLVM statically | ||||
|             LLVM_DYNAMIC_LINK=OFF | ||||
|   | ||||
		Reference in New Issue
	
	Block a user