From cf3e1e7f4097ce968c980c8abb2989a9fc439307 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Thu, 16 Mar 2017 19:52:20 +0000 Subject: [PATCH] ICU-12766 turn on escaping for z (mh-os390) X-SVN-Rev: 39840 --- icu4c/source/config/mh-os390 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/icu4c/source/config/mh-os390 b/icu4c/source/config/mh-os390 index efcb5b4c035..9bd3f9bf4c9 100644 --- a/icu4c/source/config/mh-os390 +++ b/icu4c/source/config/mh-os390 @@ -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