Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1966)

Unified Diff: scripts/make_mac_assembly.sh

Issue 962643003: Update the ICU data (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android/icudtl.dat ('k') | source/data/brkitr/brklocal.mk » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/make_mac_assembly.sh
diff --git a/scripts/make_mac_assembly.sh b/scripts/make_mac_assembly.sh
index dafadd160a5df83b22e3a78ea1b74115eed8b133..8ca593e7008ee2eb04a5b0d342e9924bcde457b5 100644
--- a/scripts/make_mac_assembly.sh
+++ b/scripts/make_mac_assembly.sh
@@ -7,15 +7,18 @@ ICUROOT="$(dirname $0)/.."
LINUX_SOURCE="${ICUROOT}/linux/icudtl_dat.S"
MAC_SOURCE="${ICUROOT}/mac/icudtl_dat.S"
+# Linux uses 'icudt${MAJOR VERSION}_dat' while Mac has "_" prepended to it.
+ICUDATA_SYMBOL="_$(head -1 ${LINUX_SOURCE} | cut -d ' ' -f 2)"
+
cat > ${MAC_SOURCE} <<PREAMBLE
-.globl _icudt52_dat
+.globl ${ICUDATA_SYMBOL}
#ifdef U_HIDE_DATA_SYMBOL
- .private_extern _icudt52_dat
+ .private_extern ${ICUDATA_SYMBOL}
#endif
.data
.const
.align 4
-_icudt52_dat:
+${ICUDATA_SYMBOL}:
PREAMBLE
PREAMBLE_LENGTH=$(($(egrep -n '^icudt' ${LINUX_SOURCE} | cut -d : -f 1) + 1))
« no previous file with comments | « android/icudtl.dat ('k') | source/data/brkitr/brklocal.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698