diff --git a/.vscode/settings.json b/.vscode/settings.json index 8b22c91bb77..1050c79b825 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "omnisharp.autoStart": false + "omnisharp.autoStart": false, + "cmake.sourceDirectory": "${workspaceFolder}/swift", + "cmake.buildDirectory": "${workspaceFolder}/bazel-cmake-build" } diff --git a/swift/CMakeLists.txt b/swift/CMakeLists.txt index ad431e49a17..fbc55187567 100644 --- a/swift/CMakeLists.txt +++ b/swift/CMakeLists.txt @@ -9,6 +9,10 @@ set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_C_COMPILER clang) set(CMAKE_CXX_COMPILER clang++) +if(APPLE) + set(CMAKE_OSX_ARCHITECTURES x86_64) # temporary until we can build a Universal Binary +endif() + project(codeql) include(../misc/bazel/cmake/setup.cmake) diff --git a/swift/rules.bzl b/swift/rules.bzl index 29a1a704f02..ba9e4b0e8bf 100644 --- a/swift/rules.bzl +++ b/swift/rules.bzl @@ -5,11 +5,7 @@ def _wrap_cc(rule, kwargs): _add_args(kwargs, "copts", [ # Required by LLVM/Swift "-fno-rtti", - ] + select({ - # temporary, before we do universal merging and have an arm prebuilt package, we make arm build x86 - "@platforms//os:macos": ["-arch=x86_64"], - "//conditions:default": [], - })) + ]) _add_args(kwargs, "features", [ # temporary, before we do universal merging "-universal_binaries",