-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[wasm] Make sure the TargetOS is capitalized #54927
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wasm] Make sure the TargetOS is capitalized #54927
Conversation
Fixes: dotnet#54926 The $(TargetOS) is used in $(TargetFrameworks) and is case sensitive. Make sure it is capitalized for Browser, so that build.cmd works when used like: ./build.cmd -bl -os browser -subset libs It fixes build errors like: C:\r\src\libraries\shims\manual\System.forwards.cs(8,88): error CS0234: The type or namespace name 'ZLibException' does not exist in the namespace 'System.IO.Compression' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj] C:\r\src\libraries\shims\manual\System.forwards.cs(9,77): error CS0234: The type or namespace name 'CookieVariant' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj] C:\r\src\libraries\shims\manual\System.forwards.cs(10,77): error CS0234: The type or namespace name 'PathList' does not exist in the namespace 'System.Net' (are you missing an assembly reference?) [C:\r\src\libraries\shims\manual\System.csproj]
|
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsFixes: #54926 The It fixes build errors like:
|
lewing
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does Configuration have a similar problem?
|
What exactly was failing? |
Configuration is fine Line 263 in 39d2ba3
|
|
radical
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure where exactly the case difference trips up the build, but this avoids getting into the broken state on windows. So, 👍
…ild-with-os-browser
|
Looks good to me but I'd have preferred something similar to what we do in build.sh where we do the remapping to the correct casing for all operating systems: https://github.com/radekdoulik/runtime/blob/b82cd2fb882f70e906ca6ee6858c1bdcdb407f15/eng/build.sh#L251-L284 |
Fixes: #54926
The
$(TargetOS)is used in target framework, which is case sensitive.Make sure it is capitalized for Browser, so that build.cmd works when
used like:
It fixes build errors like: