fix(nix): only create compile_commands.json if it doesn't exist
Signed-off-by: Seth Flynn <getchoo@tuta.io> (cherry picked from commit 58579539d071c569800ba0370a6d5918de025e33)
This commit is contained in:
parent
87c5b6cc83
commit
5c4bd3db52
@ -105,8 +105,10 @@
|
|||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
cmake $cmakeFlags -D CMAKE_BUILD_TYPE=Debug
|
if [ ! -f compile_commands.json ]; then
|
||||||
ln -s {build/,}compile_commands.json
|
cmake $cmakeFlags -D CMAKE_BUILD_TYPE=Debug
|
||||||
|
ln -s {build/,}compile_commands.json
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user