aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
Diffstat (limited to 'llvm')
-rw-r--r--llvm/utils/gn/build/toolchain/BUILD.gn6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/gn/build/toolchain/BUILD.gn b/llvm/utils/gn/build/toolchain/BUILD.gn
index 570ab1d..d01cad9 100644
--- a/llvm/utils/gn/build/toolchain/BUILD.gn
+++ b/llvm/utils/gn/build/toolchain/BUILD.gn
@@ -143,9 +143,9 @@ template("unix_toolchain") {
if (current_os == "ios" || current_os == "mac") {
tool("copy_bundle_data") {
- # http://serverfault.com/q/209888/43689
- _copydir = "mkdir -p {{output}} && cd {{source}} && " +
- "pax -rwl . \"\$OLDPWD\"/{{output}}"
+ # https://github.com/nico/hack/blob/master/notes/copydir.md
+ _copydir = "cd {{source}} && " +
+ "find . | cpio -pdl \"\$OLDPWD\"/{{output}} 2>/dev/null"
command = "rm -rf {{output}} && if [[ -d {{source}} ]]; then " +
_copydir + "; else " + copy_command + "; fi"
description = "COPY_BUNDLE_DATA {{source}} {{output}}"