[llvm] r194719 - Fix regular expression to work with multiple-digit version numbers
Dmitri Gribenko
gribozavr at gmail.com
Thu Nov 14 10:31:30 PST 2013
Author: gribozavr
Date: Thu Nov 14 12:31:30 2013
New Revision: 194719
URL: http://llvm.org/viewvc/llvm-project?rev=194719&view=rev
Log:
Fix regular expression to work with multiple-digit version numbers
Modified:
llvm/trunk/Makefile.rules
Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=194719&r1=194718&r2=194719&view=diff
==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Thu Nov 14 12:31:30 2013
@@ -550,9 +550,9 @@ ifeq ($(HOST_OS),Darwin)
DARWIN_VERSION := `sw_vers -productVersion`
endif
# Strip a number like 10.4.7 to 10.4
- DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]).*/\1/')
+ DARWIN_VERSION := $(shell echo $(DARWIN_VERSION)| sed -E 's/(10.[0-9]+).*/\1/')
# Get "4" out of 10.4 for later pieces in the makefile.
- DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]).*/\1/')
+ DARWIN_MAJVERS := $(shell echo $(DARWIN_VERSION)| sed -E 's/10.([0-9]+).*/\1/')
LoadableModuleOptions := -Wl,-flat_namespace -Wl,-undefined,suppress
SharedLinkOptions := -dynamiclib
More information about the llvm-commits
mailing list