Skip to content

Commit

Permalink
apple-sdk: only try to copy tbd files if they exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Nov 19, 2020
1 parent 79e5916 commit 79f3fa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/os-specific/darwin/apple-sdk/default.nix
Expand Up @@ -107,8 +107,8 @@ let
fi
local tbd_source=${darwin-stubs}/System/Library/Frameworks/$nested_path/Versions/$current
if [ "${name}" != "Kernel" ]; then
# The Kernel.framework has headers but no actual library component.
# Skip frameworks which have no generated tbd file.
if stat --printf="" "$tbd_source/*.tbd" 2>/dev/null; then
cp -v $tbd_source/*.tbd .
fi
Expand Down

0 comments on commit 79f3fa3

Please sign in to comment.