Way to ignore some dependencies?

36 views
Skip to first unread message

Hayley Peak

unread,
Sep 20, 2021, 2:24:46 PM9/20/21
to ninja-build
Say I have

build a: no deps
build b: depends on a
build c: depends on b

Due to some circumstances 'a' will not always be available to be built from source, and 'b' will be prebuilt and placed in the expected spot for 'c' to build from..

I can forcefully achieve this by removing build a/build b, but I still want to keep the build targets in place if they are able to 'a'. Is there a way to do this?

Ben Boeckel

unread,
Sep 21, 2021, 10:27:20 AM9/21/21
to Hayley Peak, ninja-build
This is something that is up to whatever is generating your
`build.ninja` file. Ninja doesn't have "optional" dependencies.

--Ben
Reply all
Reply to author
Forward
0 new messages