Skip to content
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

autotools: return darwin as os instead of cmake in xcompile #1258

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

novas0x2a
Copy link
Contributor

In 10d47d4, I justified returning macos instead of darwin because config.sub left it alone. Unfortunately, I immediately have to eat my words because I already discovered a macro that breaks with this; libffi has a custom macro
(https://github.com/libffi/libffi/blob/8e3ef965c2d0015ed129a06d0f11f30c2120a413/acinclude.m4#L40) that doesn't handle macos, just darwin.

I considered returning just darwin but that also runs afoul of a check, this time in gcc's version of libtool.m4
(https://github.com/gcc-mirror/gcc/blob/3f1e15e885185ad63a67c7fe423d2a0b4d8da101/libtool.m4#L1071)

Therefore, I chose to return darwin21, which is Monterey, the current oldest non-eol version of darwin.

In 10d47d4, I justified returning macos
instead of darwin because config.sub left it alone. Unfortunately, I
immediately have to eat my words because I already discovered a macro
that breaks with this; libffi has a custom macro
(https://github.com/libffi/libffi/blob/8e3ef965c2d0015ed129a06d0f11f30c2120a413/acinclude.m4#L40)
that doesn't handle macos, just darwin.

I considered returning just darwin but that also runs afoul of a check,
this time in gcc's version of libtool.m4
(https://github.com/gcc-mirror/gcc/blob/3f1e15e885185ad63a67c7fe423d2a0b4d8da101/libtool.m4#L1071)

Therefore, I chose to return darwin21, which is Monterey, the current
oldest non-eol version of darwin.
@jsharpe jsharpe enabled auto-merge (squash) August 13, 2024 10:53
@jsharpe jsharpe merged commit 6cc82e7 into bazel-contrib:main Aug 13, 2024
2 checks passed
jsharpe pushed a commit to jsharpe/rules_foreign_cc that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants