Skip to content

Commit

Permalink
fix MACOSX_DEPLOYMENT_TARGET for OS X > 10.9
Browse files Browse the repository at this point in the history
regular expression only caught first digit of minor version, turning 10.10 into 10.1
  • Loading branch information
minrk committed Dec 18, 2014
1 parent ce79707 commit 3cfd9bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion darwin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ parameters:
platform: Darwin
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
PROLOGUE: |
export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed "s/\(10.[0-9]\).*/\1/")
export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed -E "s/([0-9]+\.[0-9]+).*/\1/")
packages:
blas:
Expand Down
2 changes: 1 addition & 1 deletion osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ parameters:
fortran: false
PATH: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
PROLOGUE: |
export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed "s/\(10.[0-9]*\).*/\1/")
export MACOSX_DEPLOYMENT_TARGET=$(sw_vers -productVersion | sed -E "s/([0-9]+\.[0-9]+).*/\1/")

0 comments on commit 3cfd9bf

Please sign in to comment.