Closed Bug 1747772 Opened 2 years ago Closed 2 years ago

Allow to build using clang's integrated assembler

Categories

(NSS :: Build, task)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

This is related to bug 1724353, but I'm not going to go with a full fix for reasons that will be enunciated in the phabricator summary.

Since clang 9, NSS can build for x86_64 without the -fno-integrated-as
flag.

The tricky part is that clang versions are unreliable. For instance, a
check for "clang version 9 or more" would break building with Xcode
versions between 9.0 and 11.3.1 (because clang in those say it has
version >= 9, but they are actually clang versions between 4.0 and 8.0;
the clang version reflects the Xcode version, not the real clang version).

We do have a complicated version check in Firefox that works around
that, but I don't feel like porting this to NSS, so instead, allow
to set a gyp variable to force enable it, and let the Firefox build
system decide for itself.

Blocks: 1747773
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Flags: needinfo?(bbeurdouche)

As discussed, this will be uplifted to m-c as part of NSS 3.75, right after merge day.

Flags: needinfo?(bbeurdouche)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: