Skip to content

Commit

Permalink
Merge pull request #4 from mkhamoyan/wasi_build_macos
Browse files Browse the repository at this point in the history
Wasi build macos
  • Loading branch information
pavelsavara authored Nov 14, 2022
2 parents 9cd708b + 5a85971 commit 6f846ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono.proj
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<WasiLocalPath>$([MSBuild]::NormalizeDirectory('$(MSBuildThisFileDirectory)', 'wasi'))</WasiLocalPath>
<WasiSdkVersion>%(_VersionLines.Identity)</WasiSdkVersion>
<WasiSdkUrl>https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion)/wasi-sdk-$(WasiSdkVersion).0-linux.tar.gz</WasiSdkUrl>
<WasiSdkUrl Condition="'$(HostOS)' == 'osx'" >https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion)/wasi-sdk-$(WasiSdkVersion).0-linux.tar.gz</WasiSdkUrl>
<WasiSdkUrl Condition="'$(HostOS)' == 'osx'" >https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WasiSdkVersion)/wasi-sdk-$(WasiSdkVersion).0-macos.tar.gz</WasiSdkUrl>
</PropertyGroup>

<RemoveDir Directories="$(WASI_SDK_PATH)" />
Expand Down
1 change: 1 addition & 0 deletions src/mono/sample/wasi/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<PropertyGroup>
<WasmtimeVersion>%(_VersionLines.Identity)</WasmtimeVersion>
<WasmtimeURL>https://github.com/bytecodealliance/wasmtime/releases/download/v$(WasmtimeVersion)/wasmtime-v$(WasmtimeVersion)-x86_64-linux.tar.xz</WasmtimeURL>
<WasmtimeURL Condition="'$(HostOS)' == 'osx'" >https://github.com/bytecodealliance/wasmtime/releases/download/v$(WasmtimeVersion)/wasmtime-v$(WasmtimeVersion)-x86_64-macos.tar.xz</WasmtimeURL>
</PropertyGroup>

<Exec WorkingDirectory="$(MonoProjectRoot)/wasi" Command="mkdir wasmtime &amp;&amp; curl -L -o- $(WasmtimeURL) | tar -Jxv --strip-components=1 -C wasmtime/ &amp;&amp; cp wasmtime-version.txt wasmtime/wasmtime-version.txt" />
Expand Down

0 comments on commit 6f846ef

Please sign in to comment.