]> granicus.if.org Git - icu/commitdiff
ICU-12766 turn on escaping for z (mh-os390)
authorSteven R. Loomis <srl@icu-project.org>
Thu, 16 Mar 2017 19:52:20 +0000 (19:52 +0000)
committerSteven R. Loomis <srl@icu-project.org>
Thu, 16 Mar 2017 19:52:20 +0000 (19:52 +0000)
X-SVN-Rev: 39840

icu4c/source/config/mh-os390

index efcb5b4c0356b10f62bbb13acc509bb1c1a62ce3..9bd3f9bf4c93f703784d252e483aef48458ea392 100644 (file)
@@ -208,10 +208,27 @@ endif
 %.o: $(srcdir)/%.c
        $(COMPILE.c) $(DYNAMICCPPFLAGS) $(DYNAMICCFLAGS) -o $@ $<
 
+# This causes escapesrc to be built before other ICU targets.
+NEED_ESCAPING=YES
+
+ifneq ($(SKIP_ESCAPING),)
 %.$(STATIC_O): $(srcdir)/%.cpp
        $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
 %.o: $(srcdir)/%.cpp
        $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
+else
+# convert *.cpp files to _*.cpp with \u / \U escaping
+CLEANFILES += _*.cpp
+
+# the actual escaping
+_%.cpp: $(srcdir)/%.cpp
+       @$(BINDIR)/escapesrc$(EXEEXT) $< $@
+
+%.$(STATIC_O): _%.cpp
+       $(COMPILE.cc) $(STATICCPPFLAGS) $(STATICCXXFLAGS) -o $@ $<
+%.o: _%.cpp
+       $(COMPILE.cc) $(DYNAMICCPPFLAGS) $(DYNAMICCXXFLAGS) -o $@ $<
+endif
 
 ## Dependency rules
 %.d : %.u