Skip to content

Commit 4b122dd

Browse files
Update src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets
Co-authored-by: SingleAccretion <[email protected]>
1 parent 346c3b0 commit 4b122dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ The .NET Foundation licenses this file to you under the MIT license.
392392
<Error Text="Wasi SDK not found, not compiling to WebAssembly. To enable WebAssembly compilation, install Wasi SDK and ensure the WASI_SDK_PATH environment variable points to the directory containing share/wasi-sysroot"
393393
Condition="'$(WASI_SDK_PATH)' == '' and '$(_targetOS)' == 'wasi'" />
394394
<Warning Text="The WASI SDK version is too low. Please use WASI SDK 22 or newer with a 64 bit Clang."
395-
Condition="!Exists('$(WASI_SDK_PATH)/VERSION')" />
395+
Condition="'$(WASI_SDK_PATH)' != '' and '$(_targetOS)' == 'wasi' and !Exists('$(WASI_SDK_PATH)/VERSION')" />
396396
</Target>
397397

398398
<Target Name="CompileWasmObjects"

0 commit comments

Comments
 (0)