Comments (8)
It looks like I don't have the necessary privileges on bazelbuild/bazel to use the GitHub transfer there.
from rules_swift.
Search CROSSTOOL.tpl for "-version-min"
—you'll see that the other platforms appear to pass it consistently, but macOS is left out entirely.
from rules_swift.
I've submitted bazelbuild/bazel#6891 to try and fix this
from rules_swift.
This looks like a CROSSTOOL issue. The flags passed to the cc_library
compilation aren't affected by whether they're a dependency of a swift_binary
or not.
But if I look at Bazel's CROSSTOOL.tpl, I don't see -mmacosx-version-min=
passed anywhere by the Darwin toolchain. The other platforms like iOS do pass it, so it looks like this was an omission there. Can you file an issue with bazelbuild/bazel?
swift_binary
does respect the target triple in both compilation and linking, so once the CROSSTOOL issue is resolved, everything should work as expected.
from rules_swift.
Do you have the ability to migrate this issue to bazel now to maintain this context?
from rules_swift.
Where are you seeing that the other platforms do pass it?
from rules_swift.
Ah sorry I understand it now
from rules_swift.
Confirmed it does fix this case
from rules_swift.
Related Issues (20)
- Bug: Incremental compilation cache poisoning HOT 1
- It is not possible to use `@testable` when `compilation_mode=opt` HOT 3
- On Xcode 15, binaries depending on swift_proto_library fail to link with error: duplicate -rpath '/usr/lib/swift' HOT 6
- How to build shared libraries using rule_swift (.so)? HOT 6
- Error in new_objc_provider: Key 'linkopt' no longer supported in ObjcProvider HOT 1
- Error: There is no configuration fragment named 'swift'. Available fragments: 'platform', 'coverage', 'bazel_py', 'android', 'bazel_android', 'apple', 'cpp', 'java', 'j2objc', 'objc', 'proto', 'py' HOT 1
- Duplicate symbol error when migrating to bzlmod HOT 4
- Error adding "apple_core_data_model" dependency to "swift_library" HOT 10
- CC_Library without a tag does not generate a ModuleMap HOT 6
- 'apple_cc_toolchain' is not defined in CI at Bazel@HEAD HOT 1
- Swift Macro - cc_wrapper.sh failed: error executing CppLink command HOT 6
- [Feature Request] Mixed language(C and Swift) swift_library support HOT 4
- Umbrella `objc_library` in `experimental_mixed_language_library` produces malformed `.swift.modulemap` HOT 3
- "Operation not permitted" when switching to `-swift.emit_swiftsourceinfo`, `swift.emit_swiftdoc`
- `swift.vfsoverlay` breaks `-strict-concurrency` checking HOT 4
- Add example of Swift <--> C++ interop HOT 3
- swift_rules_extra_dependencies() fails with rules_proto 6.0.0
- Add `@build_bazel_rules_swift//swift:defs.bzl` HOT 2
- Rename workspace name to `rules_swift` HOT 1
- Unable to compile Swift files with system-provided Swift Macro like #Preview when sandboxing is enabled
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rules_swift.