Set correct target and host for clang and rustc when using Windows to build Gecko/Android
Categories
(Firefox Build System :: General: Unsupported Platforms, enhancement)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
References
Details
Attachments
(2 files)
Since host is clang-cl and target is clang, we need set correct target/triple option. But compiler detection for host uses c_compiler (it is for target), it may not set correctly.
| Assignee | ||
Updated•7 years ago
|
| Assignee | ||
Comment 1•7 years ago
|
||
When host and target are different compiler type, triple for rustc may be incorrect. If target is clang, host is always clang, not using host compiler type.
Example, when host is clang-cl for windows, and target is clang for Android, host's triple for ructc sets windows-gnu, not windows-msvc.
| Assignee | ||
Comment 2•7 years ago
|
||
When building Gecko/Android/aarch64 on Windows, --target parameter may not be incorrect value. Since check_compiler's info is host compiler, aarch64 target is always --target=aarch64-windows-msvc.
Since Android build only supports clang, we should always set --target parameter if building Android version.
Depends on D36421
Updated•7 years ago
|
Comment 4•7 years ago
|
||
Backed out 2 changesets (Bug 1562389) for causing bustages in ../python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py::WindowsToolchainTest::test_clang_cl CLOSED TREE
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=254703453&repo=autoland&lineNumber=40729
| Assignee | ||
Comment 6•7 years ago
|
||
ah, I need to fix test_toolchain_configure.py since FmeCompiler has no _MT macro.
Updated•7 years ago
|
Comment 8•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/eb3e6a4dde4b
https://hg.mozilla.org/mozilla-central/rev/c3c853745453
Description
•