Closed Bug 1659066 Opened 5 years ago Closed 5 years ago

Build failures on aarch64-apple-darwin builds because of the discrepancy between rust and clang target name

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox81 fixed)

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

3 crates are causing problems: cc, bindgen and coreaudio-sys.
For two of them, I opened an issue:

For coreaudio-sys, I'm waiting for https://github.com/rust-lang/rust-bindgen/pull/1872 to be merged and released before submitting a PR to remove the explicit --target it adds because of that.

In any case, there's actually a work around we can apply to avoid the issues entirely, half of which is something we should do anyways on all builds, but needs some extra care.

We are already figuring these flags out via configure for our own C/C++
need, and we should use those instead.

See https://github.com/alexcrichton/cc-rs/issues/371 for how it has
caused us problems in the past.

This is a placeholder until those changes are in a release.

Attachment #9169986 - Attachment description: Bug 1659066 - Don't let the cc crate set target flags on its own → Bug 1659066 - Move base C/C++ compiler flags for cc-rs to CFLAGS_*/CXXFLAGS_.
Attachment #9171346 - Attachment description: Bug 1659066 - Update glslopt-rs. → Bug 1659066 - Update glslopt-rs to 0.1.6.
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/bdecbe65a90e Update glslopt-rs to 0.1.6. r=jnicol https://hg.mozilla.org/integration/autoland/rev/0d9c38d87d51 Move base C/C++ compiler flags for cc-rs to CFLAGS_*/CXXFLAGS_. r=firefox-build-system-reviewers,rstewart https://hg.mozilla.org/integration/autoland/rev/e8fdf9f3a551 Always pass --target=arm64-apple-darwin to the compiler on arm64 macOS builds. r=froydnj
Flags: needinfo?(mh+mozilla)
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/3258419d1c71 Move base C/C++ compiler flags for cc-rs to CFLAGS_*/CXXFLAGS_. r=firefox-build-system-reviewers,rstewart https://hg.mozilla.org/integration/autoland/rev/2dc4df2ea8d9 Always pass --target=arm64-apple-darwin to the compiler on arm64 macOS builds. r=froydnj
Regressions: 1663841
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: