Don't use response files in GN build for Mac static libraries
Apparently libtool on Mac doesn't understand the "@" syntax. BUG= R=thakis@chromium.org Review URL: https://codereview.chromium.org/309113002 git-svn-id: http://src.chromium.org/svn/trunk/src/build@274561 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
This commit is contained in:
Родитель
af4f3351fe
Коммит
76576cb47e
|
@ -80,10 +80,8 @@ template("mac_clang_toolchain") {
|
|||
deps = "gcc"
|
||||
}
|
||||
tool("alink") {
|
||||
command = "rm -f \$out && ./gyp-mac-tool filter-libtool libtool \$libtool_flags -static -o \$out @\$rspfile \$postbuilds"
|
||||
command = "rm -f \$out && ./gyp-mac-tool filter-libtool libtool \$libtool_flags -static -o \$out \$in \$postbuilds"
|
||||
description = "LIBTOOL-STATIC \$out"
|
||||
rspfile = "\$out.rsp"
|
||||
rspfile_content = "\$in"
|
||||
}
|
||||
tool("solink") {
|
||||
command = "if [ ! -e \$lib -o ! -e \${lib}.TOC ] || otool -l \$lib | grep -q LC_REEXPORT_DYLIB ; then $ld -shared \$ldflags -o \$lib @\$rspfile \$solibs \$libs \$postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.TOC; else $ld -shared \$ldflags -o \$lib \$in \$solibs \$libs \$postbuilds && { otool -l \$lib | grep LC_ID_DYLIB -A 5; nm -gP \$lib | cut -f1-2 -d' ' | grep -v U\$\$; true; } > \${lib}.tmp && if ! cmp -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC ; fi; fi"
|
||||
|
|
Загрузка…
Ссылка в новой задаче