-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Imagine a situation like the below:
.
├── foo.c
├── build
└── build.ninja # parent
└── support
└── fragment.ninja # child
Where the user invokes n2 in the build directory, which then:
# build/build.ninja
# Sets some variables
proj_root = ..
# Includes the fragment (child)
include ../support/fragment.ninjaInside the fragment file, we might do something like:
# support/fragment.ninja
build foo.o: cc ${proj_root}/foo.cHowever, if we do something like this, we get an error like:
n2: error: ../support/fragment.ninja: input /foo.c missing
This is not a failure that happens on ninja or samu.
olivia@exbop build % for impl in ninja samu n2; do
rm -f foo.o
echo $impl; $impl
done
ninja
ninja: warning: build log version is too old; starting over
[1/1] cc -c -o foo.o ../foo.c
samu
[1/1] cc -c -o foo.o ../foo.c
n2
n2: error: ../support/fragment.ninja:6: input /foo.c missing
Metadata
Metadata
Assignees
Labels
No labels