[webkit-reviews] review denied: [Bug 235686] Generate compile_commands.json on macOS Builds : [Attachment 451810] WIP Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 16 16:16:43 PST 2022


Elliott Williams <emw at apple.com> has denied  review:
Bug 235686: Generate compile_commands.json on macOS Builds
https://bugs.webkit.org/show_bug.cgi?id=235686

Attachment 451810: WIP Patch

https://bugs.webkit.org/attachment.cgi?id=451810&action=review




--- Comment #21 from Elliott Williams <emw at apple.com> ---
Comment on attachment 451810
  --> https://bugs.webkit.org/attachment.cgi?id=451810
WIP Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=451810&action=review

This is relevant to each project's DebugRelease.xcconfig changes:

> PerformanceTests/DecoderTest/Configurations/DebugRelease.xcconfig:41
> +OTHER_CFLAGS = $(COMPILE_COMMANDS_$(EXPORT_COMPILE_COMMANDS));
> +OTHER_CPLUSPLUSFLAGS = $(COMPILE_COMMANDS_$(EXPORT_COMPILE_COMMANDS));
> +COMPILE_COMMANDS_ = $(inherited);
> +COMPILE_COMMANDS_YES = $(inherited) "-gen-cdb-fragment-path"
'$(BUILT_PRODUCTS_DIR)/compile_commands';

- I think OTHER_CFLAGS and OTHER_CPLUSPLUSFLAGS need an $(inherited), to pick
up settings defined in each project's Base.xcconfig. This may be why you're
seeing other compiler flags get clobbered.
- The COMPILE_COMMANDS_* variables shouldn't need to use $(inherited).	There
aren't lower layers of build settings setting which define the COMPILE_COMMANDS
variables, so it doesn't seem like it would ever expand to anything. 
- You should only need to set OTHER_CFLAGS. I believe that Xcode passes that
setting to clang in C _and_ C++ modes.


More information about the webkit-reviews mailing list