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

make: fix corner case in -j / -l handling #1995

Merged

Conversation

benoit-pierre
Copy link
Contributor

@benoit-pierre benoit-pierre commented Nov 27, 2024

▸ ./kodev test -vj1
make TARGET= KODEBUG=1 VERBOSE=1 testall T=-v\ -j\ 1
cd base/build/x86_64-pc-linux-gnu-debug/cmake && ninja -v -j\ -l8 all
ninja: fatal: invalid -j parameter
make: *** [base/Makefile:89: base-all] Error 1

Switch to MFLAGS: same value as MAKEFLAGS except that it does not contain the command line variable definitions.


This change is Reviewable

```bash
▸ ./kodev test -vj1
make TARGET= KODEBUG=1 VERBOSE=1 testall T=-v\ -j\ 1
cd base/build/x86_64-pc-linux-gnu-debug/cmake && ninja -v -j\ -l8 all
ninja: fatal: invalid -j parameter
make: *** [base/Makefile:89: base-all] Error 1
```

Switch to `MFLAGS`: same value as `MAKEFLAGS` except that it does
not contain the command line variable definitions.
@Frenzie Frenzie merged commit c110110 into koreader:master Nov 27, 2024
4 checks passed
@benoit-pierre benoit-pierre deleted the pr/fix_make_-j_-l_corner_case branch November 30, 2024 11:51
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