Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split AX_COMPILER_FLAGS into sub-macros for different tools #13

Closed

Conversation

pwithnall
Copy link
Contributor

See the two commit messages for justification. Split AX_COMPILER_FLAGS (without breaking its API) into sub-macros for different tools, initially supporting the C compiler and linker, and then adding support for g-ir-scanner from GObject Introspection (https://wiki.gnome.org/Projects/GObjectIntrospection).

Philip Withnall added 3 commits January 26, 2015 11:55
Instead of using ‘-Wno-*’ to disable a warning which the compiler is
erroneously emitting, use #pragmas to disable it for a specific source
code line.
Unfortunately, the API for AX_COMPILER_FLAGS does not scale for more
than two tools, due to the number of parameters required.

Without breaking API, split AX_COMPILER_FLAGS out into:
 • AX_COMPILER_FLAGS_CFLAGS
 • AX_COMPILER_FLAGS_LDFLAGS
and use both of these in the implementation of AX_COMPILER_FLAGS.

This means that support for a new tool can be implemented as a separate
macro, and used inside AX_COMPILER_FLAGS if deemed necessary, without
necessarily needing to add new EXTRA-* parameters for it — if people
want to add extra parameters for the tool, they can invoke
AX_COMPILER_FLAGS_* manually.
g-ir-scanner is a tool used within a lot of GNOME projects to generate
introspection data from C APIs. It has a couple of warning flags (and is
not likely to gain any more in the future), and chaining them to
--enable-compile-warnings would be useful.

Integrate AX_COMPILER_FLAGS_GIR into AX_COMPILER_FLAGS so that it’s
enabled by default.
@peti
Copy link
Collaborator

peti commented Jan 26, 2015

Merged, thank you very much for the update.

One minor nit:: if you have the chance, please run make maintainer-all all before pushing to check that the format stuff is in order, i.e. #serial numbers are bumped, etc. Thank!

@peti peti closed this Jan 26, 2015
@pwithnall pwithnall deleted the ax_compiler_flags branch February 11, 2015 08:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants