diff --git a/pkgs/development/compilers/visual-c++/builder.sh b/pkgs/development/compilers/visual-c++/builder.sh index cacf14f3077..137db50fb62 100644 --- a/pkgs/development/compilers/visual-c++/builder.sh +++ b/pkgs/development/compilers/visual-c++/builder.sh @@ -13,11 +13,14 @@ while read target; do read source echo "$source -> $target" ensureDir $out/$(dirname $target) - cp "$source" $out/"$target" + cp -p "$source" $out/"$target" done < $filemap +# Make DLLs and executables executable. +find $out \( -iname "*.dll" -o -iname "*.exe" -o -iname "*.config" \) -print0 | xargs -0 chmod +x + cat > $out/setup <