-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Support executables with multiple architectures (e.g. macOS) #9894
Comments
@H-G-Hristov I don't think we've tested this yet. What is it that isn't working? Debug/Run buttons? CTest? All of these? |
I believe it's this error: "/usr/bin/clang -arch x86_64 -arch arm64 -E -x c++ /dev/null Root cause is CMake Tools is sending a custom configuration with "-arch x86_64 -arch arm64" which is invalid when -E is used, which is required by cpptools for compiler querying. We could also fix it on the cpptools side. |
if two -arch switches are allowed while compiling, but not while probing the compiler, then I believe this is something cpptools needs to address. Configuration Providers should not need to send different arguments based on what is compatible with the probe switches. |
@sean-mcmanus I started using v.1.13.1. It's still little bit early for me to confirm I'm all of the fixes that were included are woking. |
IntelliSense getting stuck might be #9688, although in that case cpptools should be getting stuck (you'd know it's that issue if a thread has wordexp on it). Our next release may have a fix or mitigation for that. |
Type: Bug
macOS has the notion of "universal binary": https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
In CMake I can request to build an universal binary by e.g.
https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html
And in
CMakePresets.json
:Originally reported as part of: #9776
Extension version: 1.12.4
VS Code version: Code 1.71.2 (Universal) (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:05:37.721Z)
OS version: Darwin arm64 21.6.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: