WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
103101
[CMake] Allow user specified compiler flags to take precedence
https://bugs.webkit.org/show_bug.cgi?id=103101
Summary
[CMake] Allow user specified compiler flags to take precedence
Laszlo Gombos
Reported
2012-11-22 23:40:29 PST
Compiler/linker flags (e.g. CMAKE_C_FLAGS, CMAKE_CXX_FLAGS, CMAKE_SHARED_LINKER_FLAGS) specified by the build system should be always prepended to the user specified flags to make sure that the user specified flags take precedence. As an example - for the efl port - if the user would specify "build-webkit --efl --cmakearg="-DCMAKE_CXX_FLAGS=-Werror=unused-parameter" to treat unused-parameter warnings as errors, it would not work because the gcc command line would look something like the following: "... --Werror=unused-parameter ... -Werror -Wno-error=unused-parameter" and -Wno-error=unused-parameter takes precedence and the user specified option is ignored. This is also an attempt to not only fix this bug, but also make the code more consistent by always prepending compiler/linker flags in cmake files (as sometimes the code appends, sometimes prepends currently).
Attachments
proposed patch
(3.23 KB, patch)
2012-11-23 00:09 PST
,
Laszlo Gombos
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Laszlo Gombos
Comment 1
2012-11-23 00:09:38 PST
Created
attachment 175741
[details]
proposed patch
Brent Fulgham
Comment 2
2012-11-26 00:06:31 PST
Comment on
attachment 175741
[details]
proposed patch R=me
WebKit Review Bot
Comment 3
2012-11-26 00:32:05 PST
Comment on
attachment 175741
[details]
proposed patch Clearing flags on attachment: 175741 Committed
r135688
: <
http://trac.webkit.org/changeset/135688
>
WebKit Review Bot
Comment 4
2012-11-26 00:32:09 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug