[llvm-commits] [llvm] r105277 - /llvm/trunk/Makefile.rules

Dan Gohman gohman at apple.com
Tue Jun 1 10:08:57 PDT 2010


Author: djg
Date: Tue Jun  1 12:08:56 2010
New Revision: 105277

URL: http://llvm.org/viewvc/llvm-project?rev=105277&view=rev
Log:
Freebsd's sed doesn't support \< in regexps, and GNU sed doesn't
support [[:<:]]. Use beginning-of-line and end-of-line anchors
instead.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=105277&r1=105276&r2=105277&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Tue Jun  1 12:08:56 2010
@@ -986,7 +986,7 @@
 # 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): $(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::





More information about the llvm-commits mailing list