Add Windows support and clean up toolchain #10
							
								
								
									
										22
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								build.sh
									
									
									
									
									
								
							| @@ -372,6 +372,16 @@ xtchain_build() | |||||||
|     cp ${WRKDIR}/scripts/xtchain${EXTENSION} ${BINDIR}/ |     cp ${WRKDIR}/scripts/xtchain${EXTENSION} ${BINDIR}/ | ||||||
| } | } | ||||||
|  |  | ||||||
|  | # This function generates XTCHAIN version file | ||||||
|  | xtchain_vergen() | ||||||
|  | { | ||||||
|  |     cd ${WRKDIR} | ||||||
|  |     : ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)} | ||||||
|  |     : ${XTCVER:=DEVEL} | ||||||
|  |     [ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min" | ||||||
|  |     echo "${XTCVER}" > ${BINDIR}/Version | ||||||
|  | } | ||||||
|  |  | ||||||
|  |  | ||||||
|  |  | ||||||
| # Parse all arguments provided to the script | # Parse all arguments provided to the script | ||||||
| @@ -426,13 +436,14 @@ fi | |||||||
| mkdir -p ${BINDIR} | mkdir -p ${BINDIR} | ||||||
| mkdir -p ${SRCDIR} | mkdir -p ${SRCDIR} | ||||||
|  |  | ||||||
| # Build XTChain tools | # Build XTchain tools | ||||||
| #xtchain_build | #xtchain_build | ||||||
|  |  | ||||||
| # Download and build Wine tools | # Download and build Wine tools | ||||||
| #wine_fetch | #wine_fetch | ||||||
| #wine_build | #wine_build | ||||||
|  |  | ||||||
|  | if [ ${BUILD_MINIMAL} -eq 0 ]; then | ||||||
|     # Download and build LLVM |     # Download and build LLVM | ||||||
|     #llvm_fetch |     #llvm_fetch | ||||||
|     #llvm_build |     #llvm_build | ||||||
| @@ -444,10 +455,7 @@ mkdir -p ${SRCDIR} | |||||||
|     # Download and build Ninja |     # Download and build Ninja | ||||||
|     #ninja_fetch |     #ninja_fetch | ||||||
|     #ninja_build |     #ninja_build | ||||||
|  | fi | ||||||
|  |  | ||||||
| # Save XT Toolchain version | # Generate XTchain version file | ||||||
| cd ${WRKDIR} | #xtchain_vergen | ||||||
| : ${XTCVER:=$(git describe --exact-match --tags 2>/dev/null)} |  | ||||||
| : ${XTCVER:=DEVEL} |  | ||||||
| [ ${BUILD_MINIMAL} -eq 1 ] && XTCVER="${XTCVER}-min" |  | ||||||
| echo "${XTCVER}" > ${BINDIR}/Version |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user