Closed Bug 1259381 Opened 9 years ago Closed 9 years ago

Move --with-ccache and --with-compiler-wrapper to moz.configure

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox48 fixed)

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

(Blocks 2 open bugs)

Details

Attachments

(2 files)

No description provided.
Depends on: 1257516
Depends on: 1259960
While moving the ccache flag, we're going to make it disappear when the compiler environment is not enabled, so adding --with-ccache will fail. Review commit: https://reviewboard.mozilla.org/r/42639/diff/#index_header See other reviews: https://reviewboard.mozilla.org/r/42639/
Attachment #8735181 - Flags: review?(cmanchester)
Attachment #8735182 - Flags: review?(cmanchester)
Comment on attachment 8735181 [details] MozReview Request: Bug 1259381 - Don't add --with-ccache in mozconfigs doing --disable-compile-environment or --enable-artifact-builds. r=chmanchester https://reviewboard.mozilla.org/r/42639/#review39243
Attachment #8735181 - Flags: review?(cmanchester) → review+
Attachment #8735182 - Flags: review?(cmanchester) → review+
Comment on attachment 8735182 [details] MozReview Request: Bug 1259381 - Move --with-ccache and --with-compiler-wrapper to moz.configure. r=chmanchester https://reviewboard.mozilla.org/r/42641/#review39251 ::: build/moz.configure/toolchain.configure:102 (Diff revision 1) > +def using_compiler_wrapper(compiler_wrapper): > + return True > + > +set_config('MOZ_USING_COMPILER_WRAPPER', using_compiler_wrapper) These "using" functions might work as well as lambdas in the set_config calls.
https://reviewboard.mozilla.org/r/42641/#review39251 > These "using" functions might work as well as lambdas in the set_config calls. You mean a depends_if-wrapped lambda. I'd rather live them there for now, they're easier to identify by introspection (I want to identify some patterns "automatically" and do some bikeshedding on them later)
https://reviewboard.mozilla.org/r/42641/#review39251 > You mean a depends_if-wrapped lambda. I'd rather live them there for now, they're easier to identify by introspection (I want to identify some patterns "automatically" and do some bikeshedding on them later) Yes, I mean that. That sounds fine.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
https://reviewboard.mozilla.org/r/42641/#review40653 ::: build/moz.configure/toolchain.configure:79 (Diff revision 1) > + return value > + # If --with-ccache was given without an explicit value, we default to > + # 'ccache'. > + return 'ccache' > + > +ccache = check_prog('CCACHE', progs=(), input=ccache) This is confusing, reusing the same name for the results of check_prog and the handler for the argument.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: