Closed
Bug 1938023
Opened 1 year ago
Closed 1 year ago
Be more consistent when cross compiling clang
Categories
(Firefox Build System :: Toolchains, task)
Firefox Build System
Toolchains
Tracking
(firefox135 fixed)
RESOLVED
FIXED
135 Branch
| Tracking | Status | |
|---|---|---|
| firefox135 | --- | fixed |
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•1 year ago
|
||
There are some cmake flags we currently only set for mac cross compiles,
but would be just as good to always set and/or for all cross compiles.
The former is the case for CMAKE_*_COMPILER_TARGET.
The latter it the case for CMAKE_SYSTEM_NAME, which implies
CMAKE_CROSSCOMPILING.
LLVM_DEFAULT_TARGET_TRIPLE is implied by LLVM_HOST_TRIPLE, which is
also more important to set, so we set that one instead.
While touching build-clang.py, we also add aarch64-unknown-linux-gnu
as a supported cross-compilation target without adding the corresponding
toolchain. This will avoid rebuilding all the compilers when just adding
new configs for arm64 linux clang toolchains.
Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/39558d6fbceb
Be more consistent when cross compiling clang. r=firefox-build-system-reviewers,sergesanspaille
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox135:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•