Skip to content

Don't set -Werror by default#1340

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix1339
Feb 10, 2026
Merged

Don't set -Werror by default#1340
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:fix1339

Conversation

@bnoordhuis
Copy link
Copy Markdown
Contributor

It's annoying for downstream users when they don't use the exact same compiler as we do because any random new (or old) compiler warning breaks the build.

Only set the flag on CI or when explicitly requested with the new QJS_BUILD_WERROR cmake option.

Fixes: #1339

It's annoying for downstream users when they don't use the exact same
compiler as we do because any random new (or old) compiler warning
breaks the build.

Only set the flag on CI or when explicitly requested with the new
QJS_BUILD_WERROR cmake option.

Fixes: quickjs-ng#1339
@saghul
Copy link
Copy Markdown
Contributor

saghul commented Feb 10, 2026

LGTM. What I was thinking was something like https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html and then we'd need no option, we can just have it always on if we are the top level project. No strong opinion though!

@bnoordhuis
Copy link
Copy Markdown
Contributor Author

It's kind of attractive (no new flag) but it wouldn't have fixed #1333.

@bnoordhuis bnoordhuis merged commit 314c179 into quickjs-ng:master Feb 10, 2026
122 checks passed
@bnoordhuis bnoordhuis deleted the fix1339 branch February 10, 2026 16:35
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.

Don't set -Werror by default in CMakeLists.txt

2 participants