[llvm-commits] [llvm] r152574 - /llvm/trunk/Makefile.rules
Eric Christopher
echristo at apple.com
Mon Mar 12 13:58:14 PDT 2012
Author: echristo
Date: Mon Mar 12 15:58:14 2012
New Revision: 152574
URL: http://llvm.org/viewvc/llvm-project?rev=152574&view=rev
Log:
Use a posix compliant regexp in export file construction.
Patch by John Spencer
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=152574&r1=152573&r2=152574&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Mon Mar 12 15:58:14 2012
@@ -1070,7 +1070,7 @@
NativeExportsFile := $(ObjDir)/$(notdir $(EXPORTED_SYMBOL_FILE)).map
$(NativeExportsFile): $(EXPORTED_SYMBOL_FILE) $(ObjDir)/.dir
$(Verb) echo "{" > $@
- $(Verb) grep -q "\<" $< && echo " global:" >> $@ || :
+ $(Verb) grep -q '[[:alnum:]_]' $< && echo " global:" >> $@ || :
$(Verb) sed -e 's/$$/;/' -e 's/^/ /' < $< >> $@
ifneq ($(HOST_OS),OpenBSD)
$(Verb) echo " local: *;" >> $@
More information about the llvm-commits
mailing list