diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-01 17:08:56 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-01 17:08:56 +0000 |
commit | f4ef72e51950cb32153c3435af1e24c876db9715 (patch) | |
tree | 53ffe00efdbdc9e5cd30c495561ba9674a76d18f /Makefile.rules | |
parent | 7f5b0d809986469a8618c6e941a10a595fddc124 (diff) | |
download | llvm-f4ef72e51950cb32153c3435af1e24c876db9715.tar.gz llvm-f4ef72e51950cb32153c3435af1e24c876db9715.tar.bz2 llvm-f4ef72e51950cb32153c3435af1e24c876db9715.tar.xz |
Freebsd's sed doesn't support \< in regexps, and GNU sed doesn't
support [[:<:]]. Use beginning-of-line and end-of-line anchors
instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules index 942cb9d4d7..fb1f83d223 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -986,7 +986,7 @@ ifeq ($(HOST_OS),Darwin) # Darwin convention prefixes symbols with underscores. NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).sed $(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir - $(Verb) sed -e 's/[[:<:]]/_/' < $< > $@ + $(Verb) sed -e 's/^/_/' < $< > $@ clean-local:: -$(Verb) $(RM) -f $(NativeExportsFile) else @@ -996,7 +996,7 @@ NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).map $(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir $(Verb) echo "{" > $@ $(Verb) grep -q "\<" $< && echo " global:" >> $@ || : - $(Verb) sed -e 's/\>/;/' -e 's/^\</ /' < $< >> $@ + $(Verb) sed -e 's/$$/;/' -e 's/^/ /' < $< >> $@ $(Verb) echo " local: *;" >> $@ $(Verb) echo "};" >> $@ clean-local:: |