mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
* Automatically determine header file dependencies using the
`findIncludes' function. The current implementation is impure and therefore not correct: it gathers header file dependencies only once for a specific path (due to caching).
This commit is contained in:
parent
fa50c0849e
commit
7d386d5c29
7 changed files with 62 additions and 2 deletions
|
|
@ -64,7 +64,9 @@ for ((n = 0; n < ${#localIncludes[*]}; n += 2)); do
|
|||
done
|
||||
|
||||
# Create a symlink to the main file.
|
||||
ln -s $main $prefix$mainName
|
||||
if ! test "$(readlink $prefix$mainName)" = $main; then
|
||||
ln -s $main $prefix$mainName
|
||||
fi
|
||||
|
||||
mkdir $out
|
||||
test "$prefix" && cd $prefix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue