Closed Bug 1419556 Opened 7 years ago Closed 7 years ago

Properly quote CompileFlags in the tup backend

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set
normal

Tracking

(firefox59 fixed)

RESOLVED FIXED
mozilla59
Tracking Status
firefox59 --- fixed

People

(Reporter: mshal, Assigned: mshal)

References

Details

Attachments

(2 files)

The CompileFlags need to be shell_quoted in the tup backend, otherwise for example widget/gtk fails to compile because it has -DMOZ_APP_NAME="firefox" in the command-line. It needs to be wrapped in single-quotes so the string quotes get to the preprocessor.
Attachment #8930666 - Flags: review?(core-build-config-reviews) → review?(cmanchester)
Attachment #8930667 - Flags: review?(core-build-config-reviews) → review?(cmanchester)
Comment on attachment 8930666 [details]
Bug 1419556 - shell_quote() the ComputedFlags in the tup backend;

https://reviewboard.mozilla.org/r/201810/#review207094
Attachment #8930666 - Flags: review?(cmanchester) → review+
Comment on attachment 8930667 [details]
Bug 1419556 - Expand list of supported compilation dirs in the tup backend;

https://reviewboard.mozilla.org/r/201812/#review207096

::: python/mozbuild/mozbuild/backend/tup.py:276
(Diff revision 1)
>          elif isinstance(obj, PerSourceFlag):
>              backend_file.per_source_flags[obj.file_name].extend(obj.flags)
>          elif isinstance(obj, ComputedFlags):
>              self._process_computed_flags(obj, backend_file)
>          elif isinstance(obj, (Sources, GeneratedSources)):
> -            if obj.relobjdir.startswith('xpcom'):
> +            if obj.relobjdir.startswith(self._supported_dirs):

Huh, I never knew startswith took a tuple, that's pretty useful!
Attachment #8930667 - Flags: review?(cmanchester) → review+
Pushed by mshal@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/37d892d33b6c
shell_quote() the ComputedFlags in the tup backend; r=chmanchester
https://hg.mozilla.org/integration/autoland/rev/425acc5494c0
Expand list of supported compilation dirs in the tup backend; r=chmanchester
https://hg.mozilla.org/mozilla-central/rev/37d892d33b6c
https://hg.mozilla.org/mozilla-central/rev/425acc5494c0
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla59
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: