-
Notifications
You must be signed in to change notification settings - Fork 37.7k
build: remove use of TARGET_OS and BUILD_OS #23969
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
Conversation
Concept ACK. |
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
3120c29
to
895e3b6
Compare
Fixed the issue with the android build. |
895e3b6
to
b6b6094
Compare
Simplified this further and removed |
b6b6094
to
3f84c22
Compare
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.
Approach ACK 3f84c22
Why not being consistent about preferring AS_CASE
over shell's case
, at least within this PR?
See:
- https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/autoconf.html#Balancing-Parentheses
- https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/autoconf.html#case
- https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/autoconf.html#Common-Shell-Constructs
3f84c22
to
a9f3b56
Compare
a9f3b56
to
8c5c090
Compare
8c5c090
to
d79311e
Compare
d79311e
to
3e45498
Compare
Rebased past #24681. |
Guix builds
|
In favour of checking $host_os and $build_os directly.
3e45498
to
86851c8
Compare
Concept ACK GUIX hashes on x86, mine match fanquake's latest round
|
if test "$TARGET_OS" = "windows"; then | ||
NATPMP_CPPFLAGS="-DSTATICLIB -DNATPMP_STATICLIB" | ||
fi | ||
AS_CASE([$host_os], [*mingw*], [NATPMP_CPPFLAGS="-DSTATICLIB -DNATPMP_STATICLIB"]) |
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.
What about non-mingw windows? Does this make it more difficult to switch compilers later? E.g. does the clang windows tuple have mingw in it?
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.
I think in that case there is a different tuple. Doing this isn't really a priority, so I'll close this for now, and we can potentially revisit later.
In favour of checking
$host_os
and$build_os
directly.Guix Build (on x86_64):