Closed
Bug 818061
Opened 13 years ago
Closed 13 years ago
Fallback to systems default clang if CC/CXX is not set
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla20
People
(Reporter: whimboo, Assigned: whimboo)
Details
Attachments
(1 file, 2 obsolete files)
905 bytes,
patch
|
whimboo
:
review+
|
Details | Diff | Splinter Review |
If we can't find clang with the current logic in build/macosx/mozconfig.common we currently fail. Instead we should fallback to the systems default clang if CC and CXX haven't been set.
http://mxr.mozilla.org/mozilla-central/source/build/macosx/mozconfig.common
We will also have to update the documentation on MDN.
Assignee | ||
Comment 1•13 years ago
|
||
Falls back to the default clang version if environment variables haven't been declared or clang hasn't been found by the logic in the lines before.
Attachment #688275 -
Flags: review?(ted)
Comment 2•13 years ago
|
||
Comment on attachment 688275 [details] [diff] [review]
Patch v1
Review of attachment 688275 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/macosx/mozconfig.common
@@ +21,5 @@
> +
> +# If not set use the system default clang++
> +if [ -n CXX ]; then
> + export CXX=clang++
> +fi
These tests aren't correct, I think you want:
if [ -z "$CC" ]; then
Attachment #688275 -
Flags: review?(ted) → review-
Assignee | ||
Comment 3•13 years ago
|
||
You are right. My bad. Fixed that and also triggered a tryserver build just to be sure we do not break anything.
https://tbpl.mozilla.org/?tree=Try&rev=46d26ddcaae0
Attachment #688275 -
Attachment is obsolete: true
Attachment #688770 -
Flags: review?(ted)
Comment 4•13 years ago
|
||
Comment on attachment 688770 [details] [diff] [review]
Patch v2
Review of attachment 688770 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/macosx/mozconfig.common
@@ +14,5 @@
> export CXX=$topsrcdir/../clang/bin/clang++
> fi
> +
> +# If not set use the system default clang
> +if [ -z CC ]; then
I think you actually want [ -z "$CC" ] here (and below).
Attachment #688770 -
Flags: review?(ted) → review+
Assignee | ||
Comment 5•13 years ago
|
||
Updated once again now with a new set of glasses. Thanks Ted for spotting this mistake.
Attachment #688770 -
Attachment is obsolete: true
Attachment #688916 -
Flags: review+
Assignee | ||
Comment 6•13 years ago
|
||
Comment on attachment 688916 [details] [diff] [review]
Patch v3
https://hg.mozilla.org/integration/mozilla-inbound/rev/582547d8070c
Attachment #688916 -
Flags: checkin+
Comment 7•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Henrik Skupin (:whimboo) from comment #0)
> We will also have to update the documentation on MDN.
Given that we fixed it in mozconfig.common no updates for MDN have to be made.
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•