Skip to content

[cmake] Colorize output when using cmake + ninja.#674

Merged
ebraminio merged 1 commit into
harfbuzz:masterfrom
waywardmonkeys:color-output-with-ninja
Jan 4, 2018
Merged

[cmake] Colorize output when using cmake + ninja.#674
ebraminio merged 1 commit into
harfbuzz:masterfrom
waywardmonkeys:color-output-with-ninja

Conversation

@waywardmonkeys

Copy link
Copy Markdown
Contributor

Due to how ninja runs clang and gcc, it doesn't colorize the output
like make does. This forces color output in this situation.

@ebraminio

Copy link
Copy Markdown
Collaborator

I guess it should be applied to CMAKE_C_FLAGS as we use it for some of units, and can this applied to upstream's cmake ninja generator also do you believe?

Btw, can you give us a hand on #675? I've put the command can be used for compilation, the issue is harfbuzz's cmake exporting unnecessary symbols and some static initializing things that tests that currently working fine with the output of autotools are catching them.

@ebraminio

Copy link
Copy Markdown
Collaborator

Tried to resolve the conflict and add CMAKE_C_FLAGS but seem to broke it somehow?

@waywardmonkeys waywardmonkeys force-pushed the color-output-with-ninja branch from 4f88fdc to 8b94100 Compare January 4, 2018 07:05
@waywardmonkeys

Copy link
Copy Markdown
Contributor Author

I've gone ahead and rebased this forward, added setting the C compiler flags as well and force pushed it here.

@ebraminio

ebraminio commented Jan 4, 2018

Copy link
Copy Markdown
Collaborator

Great, as a bikeshedding, please put the new part before # Test :)

Due to how ninja runs clang and gcc, it doesn't colorize the output
like make does. This forces color output in this situation.
@waywardmonkeys waywardmonkeys force-pushed the color-output-with-ninja branch from 8b94100 to 4d39274 Compare January 4, 2018 09:27
@waywardmonkeys

Copy link
Copy Markdown
Contributor Author

Done.

@ebraminio ebraminio merged commit 4f80078 into harfbuzz:master Jan 4, 2018
@waywardmonkeys waywardmonkeys deleted the color-output-with-ninja branch January 21, 2018 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants