Skip to content

Ninja: Fix depfile binding with spaces in path

Brad King requested to merge brad.king/cmake:ninja-depfile-quoting into master

In build statements we use a single DEP_FILE = ... binding that is shared between depfile = $DEP_FILE and command = ... $DEP_FILE ... bindings in the corresponding rule. In cases that the command's shell argument needs quoting, add a separate depfile = ... binding to the build statement to express the depfile path without quoting. Otherwise ninja tries to open a file path that contains literal quotes.

Fixes: #26287 (closed)

Merge request reports

Loading