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

[build] Use Ninja by default when available #862

Merged
merged 7 commits into from Mar 16, 2019

Conversation

Frenzie
Copy link
Member

@Frenzie Frenzie commented Mar 15, 2019

And add an easy way to pass some flags downstream.

@Frenzie Frenzie merged commit 6bd23e9 into koreader:master Mar 16, 2019
Frenzie added a commit to Frenzie/koreader that referenced this pull request Mar 16, 2019
…lable

The difference for builds from scratch is negligible, but for rebuilds (i.e., us hackers & the CI here in front) it should bring a speed improvement.

Cf. koreader/koreader-base#861, koreader/koreader-base#862 and https://github.com/koreader/virdevenv/pull/34/files
Frenzie added a commit to koreader/koreader that referenced this pull request Mar 16, 2019
…lable (#4808)

The difference for builds from scratch is negligible, but for rebuilds (i.e., for us hackers & the CI here in front) it should bring a speed improvement.

Automatic fallback to Make when Ninja is not available, or override with `USE_MAKE=1`.

You can (theoretically) choose your own generator with a sensible combination of `CMAKE_FLAGS` and `CMAKE_MAKE_PROGRAM`.

I also added `MAKE_FLAGS` and `NINJA_FLAGS`. That way you can easily pass `MAKE_FLAGS=-n` or `NINJA_FLAGS=-n` for a dry run, for example.

To switch you might have to run something like `make dist-clean USE_MAKE=1`.

Cf. koreader/koreader-base#861, koreader/koreader-base#862 and https://github.com/koreader/virdevenv/pull/34/files
@Frenzie Frenzie deleted the ninja-default branch February 22, 2020 15:01
mwoz123 pushed a commit to mwoz123/koreader that referenced this pull request Mar 29, 2020
…lable (koreader#4808)

The difference for builds from scratch is negligible, but for rebuilds (i.e., for us hackers & the CI here in front) it should bring a speed improvement.

Automatic fallback to Make when Ninja is not available, or override with `USE_MAKE=1`.

You can (theoretically) choose your own generator with a sensible combination of `CMAKE_FLAGS` and `CMAKE_MAKE_PROGRAM`.

I also added `MAKE_FLAGS` and `NINJA_FLAGS`. That way you can easily pass `MAKE_FLAGS=-n` or `NINJA_FLAGS=-n` for a dry run, for example.

To switch you might have to run something like `make dist-clean USE_MAKE=1`.

Cf. koreader/koreader-base#861, koreader/koreader-base#862 and https://github.com/koreader/virdevenv/pull/34/files
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.

None yet

1 participant