mirror of
				https://github.com/bensuperpc/dockcross.git
				synced 2025-11-01 00:26:23 +01:00 
			
		
		
		
	Merge pull request #620 from thewtex/wasi-cmake-platform
web-wasi: Patch CMake with WASI platform
This commit is contained in:
		| @@ -26,6 +26,8 @@ ENV AR=${CROSS_ROOT}/bin/llvm-ar \ | ||||
|     CXX=clang++-wasi-sysroot.sh \ | ||||
|     LD=${CROSS_ROOT}/bin/wasm-ld | ||||
|  | ||||
| COPY WASI.cmake /usr/src/ | ||||
| RUN mv /usr/src/WASI.cmake /usr/share/cmake-*/Modules/Platform/ | ||||
| COPY Toolchain.cmake ${CROSS_ROOT}/ | ||||
| ENV CMAKE_TOOLCHAIN_FILE ${CROSS_ROOT}/Toolchain.cmake | ||||
|  | ||||
|   | ||||
| @@ -1,5 +1,4 @@ | ||||
| set(WASI 1) | ||||
|  | ||||
| set(WASI_SDK_PREFIX $ENV{WASI_SDK_PATH}) | ||||
| include($ENV{WASI_SDK_PATH}/share/cmake/wasi-sdk.cmake) | ||||
|  | ||||
| set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT}) | ||||
|   | ||||
							
								
								
									
										2
									
								
								web-wasi/WASI.cmake
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								web-wasi/WASI.cmake
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| set(WASI 1) | ||||
| set(UNIX 1) | ||||
		Reference in New Issue
	
	Block a user
	 Matt McCormick
					Matt McCormick