Closed
Bug 1675395
Opened 5 years ago
Closed 5 years ago
swgl's build script does not pass -Xclang to clang-cl on Windows
Categories
(Core :: Graphics: WebRender, defect)
Core
Graphics: WebRender
Tracking
()
RESOLVED
FIXED
89 Branch
| Tracking | Status | |
|---|---|---|
| firefox89 | --- | fixed |
People
(Reporter: beth, Assigned: lsalzman)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The build script for swgl does not pass -Xclang to clang-cl.exe on Windows, leading to options being ignored:
0:48.53 warning: clang-cl: warning: unknown argument ignored in clang-cl: '-std=c++14' [-Wunknown-argument]
0:48.53 warning: clang-cl: warning: unknown argument ignored in clang-cl: '-fno-exceptions' [-Wunknown-argument]
0:48.53 warning: clang-cl: warning: unknown argument ignored in clang-cl: '-fno-rtti' [-Wunknown-argument]
0:48.53 warning: clang-cl: warning: unknown argument ignored in clang-cl: '-fno-math-errno' [-Wunknown-argument]
clang-cl.exe accepts cl.exe style arguments (/std:c++14) unless you pass -Xclang to use clang frontend arguments.
Updated•5 years ago
|
Severity: -- → S3
Comment 1•5 years ago
|
||
This is still an issue (although -std=c++14 has been changed to -std=c++17):
3:22.34 warning: clang: warning: unknown argument ignored in clang-cl: '-std=c++17' [-Wunknown-argument]
3:22.34 warning: clang: warning: unknown argument ignored in clang-cl: '-fno-exceptions' [-Wunknown-argument]
3:22.34 warning: clang: warning: unknown argument ignored in clang-cl: '-fno-rtti' [-Wunknown-argument]
3:22.34 warning: clang: warning: unknown argument ignored in clang-cl: '-fno-math-errno' [-Wunknown-argument]
Comment 2•5 years ago
|
||
| clang options | corresponding msvc options |
|---|---|
| -std=c++17 | /std:c++17 |
| -fno-exceptions | /EHs- |
| -fno-rtti | /GR- |
| -fno-math-errno | none, but clang defaults to -fno-math-errno |
Or we can just prepend -Xclang or /clang: to every options.
| Assignee | ||
Comment 3•5 years ago
|
||
Updated•5 years ago
|
Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01686a5407ac
Pass in flags for MSVC-like compilers in SWGL build script. r=jrmuizel
Comment 5•5 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
status-firefox89:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•