Skip to content

Ninja: don't use `|| true` for link-what-you-use

Ben Boeckel requested to merge ben.boeckel/cmake:lwyu-hides-link-error into master

With the || true, a linker error before running link-what-you-use would also use the || true fragment and unconditionally succeed. Just skip the addition since --lwyu= ignores the return value anyways.

Fixes #18524 (closed)


Cc: @brad.king @bill-hoffman

Edited by Ben Boeckel

Merge request reports