Closed Bug 1902214 Opened 4 months ago Closed 4 months ago

Clean up old cruft from clang-plugin build setup

Categories

(Firefox Build System :: General, task)

task

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(6 files)

No description provided.

We did that to avoid linking against clang's libc++, but that hasn't
been necessary since we removed it in bug 1788870.

-isysroot was appearing in the llvm-config output on mac in very old
clang.llvm.org builds. The latest builds don't do that anymore, and our
own bootstrapped builds don't either.

-gcc-toolchain was filtered out because we were using it to build our
own clang and that transpired in llvm-config, but we don't anymore, as
of bug 1719226.

For some reason, we ended up using -Xclang -std=c++17, when we could
just have used -std:c++17, which simplifies things.

Back when this was done, we had some trouble with make calling commands
through the shell instead of via CreateProcess on Windows, which made
the intermediate shell replace /ARG with c:\path\to\msys\ARG paths,
which didn't end up well.

This however doesn't happen anymore, so we can get rid of the hack.

That leaves us with only the backslash problem, but because it's a windows
problem, rather than being related to the compiler being clang-cl, we also
fix the condition under which we make the switch to forward slashes.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/eca3b11bb9a3 Don't filter-out /path/to/clang/lib from LDFLAGS on mac. r=firefox-build-system-reviewers,sergesanspaille https://hg.mozilla.org/integration/autoland/rev/458f017c01a5 Stop filtering out -isysroot and -gcc-toolchain. r=firefox-build-system-reviewers,sergesanspaille https://hg.mozilla.org/integration/autoland/rev/39785c41d70c Move -flat_namespace and -undefined suppress flags out of configure. r=firefox-build-system-reviewers,sergesanspaille https://hg.mozilla.org/integration/autoland/rev/164f41e926db Move clang library linkage to moz.build. r=firefox-build-system-reviewers,sergesanspaille https://hg.mozilla.org/integration/autoland/rev/51a17c834d88 Use -std:c++17 on clang-cl builds. r=firefox-build-system-reviewers,sergesanspaille https://hg.mozilla.org/integration/autoland/rev/60ccda7205ff Don't try to convert arguments from /ARG form to -ARG form. r=firefox-build-system-reviewers,sergesanspaille
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: