Closed Bug 1090512 Opened 6 years ago Closed 6 years ago

Emulate the clang-cl compiler version in toolchain.m4

Categories

(Firefox Build System :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla36

People

(Reporter: ehsan, Assigned: ehsan)

References

Details

Attachments

(1 file)

Attached patch Patch (v1)Splinter Review
This helps eliminate the need for setting C/CXXFLAGS in the mozconfig.
Attachment #8512979 - Flags: review?(mh+mozilla)
Comment on attachment 8512979 [details] [diff] [review]
Patch (v1)

Review of attachment 8512979 [details] [diff] [review]:
-----------------------------------------------------------------

::: build/autoconf/toolchain.m4
@@ +76,5 @@
> +    # We force clang-cl to emulate Visual C++ 2013 in configure.in, but that
> +    # is based on the CLANG_CL variable defined here, so make sure that we're
> +    # getting the right version here manually.
> +    CC_VERSION=1800
> +    CXX_VERSION=1800

Shouldn't -fmsc-version and -fallback be added here as well? Which would make them used in js/src, which they currently aren't...
Attachment #8512979 - Flags: review?(mh+mozilla) → review+
Good idea, will do.
This was causing bizarre Android build failures that were fixed by clobbering.
https://hg.mozilla.org/integration/mozilla-inbound/rev/33b93eb7e383
https://hg.mozilla.org/mozilla-central/rev/52ed8be78a65
https://hg.mozilla.org/mozilla-central/rev/33b93eb7e383
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.