Handle foreign-owned compile artifacts
This commit is contained in:
@@ -56,7 +56,9 @@ build_pch_if_needed() {
|
||||
return 0
|
||||
fi
|
||||
mkdir -p "$PCH_DIR"
|
||||
exec 9>"$PCH_FN.lock"
|
||||
if ! { exec 9>"$PCH_FN.lock"; } 2>/dev/null; then
|
||||
exec 9<"$PCH_FN.lock"
|
||||
fi
|
||||
flock 9
|
||||
if [ -s "$PCH_FN" ] && [ -z "$(find src/lib -maxdepth 1 -name '*.h' -type f -newer "$PCH_FN" -print -quit)" ]; then
|
||||
flock -u 9
|
||||
|
||||
Reference in New Issue
Block a user