-
Notifications
You must be signed in to change notification settings - Fork 349
Fix an MSVC build issue. #9394
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
Fix an MSVC build issue. #9394
Conversation
Disable the LSE files if COMPILER_RT_HAS_ASM_LSE failed as MSVC cannot seem to handle .S input files. ``` [258/401] Building ASM object CMakeFiles\clang_rt.builtins-aarch64.dir\outline_atomic_helpers.dir\outline_atomic_cas1_3.S.obj Microsoft (R) C/C++ Optimizing Compiler Version 19.38.33135 for ARM64 Copyright (C) Microsoft Corporation. All rights reserved. cl : Command line warning D9035 : option 'o' has been deprecated and will be removed in a future release cl : Command line warning D9024 : unrecognized source file type 'S:\b\5\runtimes\builtins-aarch64-unknown-windows-msvc-bins\outline_atomic_helpers.dir\outline_atomic_cas1_3.S', object file assumed cl : Command line warning D9027 : source file 'S:\b\5\runtimes\builtins-aarch64-unknown-windows-msvc-bins\outline_atomic_helpers.dir\outline_atomic_cas1_3.S' ignored cl : Command line warning D9021 : no action performed ```
This should fix the CI https://ci-external.swift.org/job/swift-rebranch-windows-toolchain-arm64/442/ |
@swift-ci please test |
@compnerd This should fix the arm64 rebranch issue |
Upstream PR: #9394 |
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.
This might not work - the condition should be true, but the problem is that the Microsoft ASM compiler uses a different syntax and they don't usually do CPP+ASM so it won't process the file correctly.
In my local build and the CI, the condition is false when MSVC is used and this seems to work. The CI will tell us?
https://ci-external.swift.org/job/swift-rebranch-windows-toolchain-arm64/442/consoleText |
Hmm, from what I could tell from the logs it was enabled - see #9391. Or at least it is sometimes? I suppose the last before the failure is |
@swift-ci please test Windows Platform |
@swift-ci please test macOS Platform |
Okay, merging that one then 🙇♂️ |
@bnbarham I think #9391 fixed the issue. I think the next issue with
I think this may indicate that the https://ci-external.swift.org/job/swift-rebranch-windows-toolchain-arm64/449/consoleText
https://ci-external.swift.org/job/swift-main-windows-toolchain-arm64/598/consoleText
@shahmishal Would you mind setting the |
Thanks @hjyamauchi! @shahmishal has already fixed that one, hopefully the next build passes. |
@bnbarham I see that now it's green. TY! |
Disable the LSE files if COMPILER_RT_HAS_ASM_LSE failed as MSVC cannot seem to handle .S input files.