Rust SpiderMonkey bindings must be updated to build in C++17 mode
Categories
(Firefox Build System :: General, defect, P2)
Tracking
(firefox-esr68 unaffected, firefox71 unaffected, firefox72 unaffected, firefox73 fixed)
Tracking | Status | |
---|---|---|
firefox-esr68 | --- | unaffected |
firefox71 | --- | unaffected |
firefox72 | --- | unaffected |
firefox73 | --- | fixed |
People
(Reporter: sg, Assigned: sg)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
The Rust SpiderMonkey bindings still build in C++14 mode.
This hasn't been visible until now, since none of the code used by the bindings used C++17 features, but this will be the case in the future, e.g. with Bug 1560664.
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Hm, I tried to just change to -std=gnu++17
in js/rust/CMakeLists.txt
, but this doesn't seem to make a difference regarding the availability of std::is_convertible_v
. It is hard to see which compiler/toolset and libstdc++ is used there, maybe this needs to be updated as well?
Comment 2•5 years ago
|
||
Can you point me towards an automation job/configuration where this happens? I'm rather confused because I don't see js/rust
hooked into our build.
Assignee | ||
Comment 3•5 years ago
|
||
(In reply to Chris Manchester (:chmanchester) from comment #2)
Can you point me towards an automation job/configuration where this happens? I'm rather confused because I don't see
js/rust
hooked into our build.
Sorry, I should have included that beforehand. I wasn't aware of that job either, so I just hit that issue when trying to land. This is the failing job log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=280297638&repo=autoland&lineNumber=242
Updated•5 years ago
|
Comment 4•5 years ago
|
||
Ah, ok, I think perhaps we need an update here: https://searchfox.org/mozilla-central/rev/690e903ef689a4eca335b96bd903580394864a1c/js/rust/build.rs#146
Nathan, does that look right?
Assignee | ||
Comment 5•5 years ago
|
||
I can confirm that changing --std
there fixes the issue: https://treeherder.mozilla.org/logviewer.html#?job_id=280646795&repo=try
I will submit a patch for that.
Assignee | ||
Comment 6•5 years ago
|
||
Updated•5 years ago
|
Comment 8•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Updated•5 years ago
|
Description
•