Skip to content

OS X improvements #38

Closed
Closed

Description

@springmeyer

My opinion is:

  1. Mason package versioning on OS X should not use ${MASON_PLATFORM_VERSION} when versioning binaries for OSX. So instead of ./mason_packages/osx-${MASON_PLATFORM_VERSION} or ./mason_packages/osx-10.10 packages should be stored in: ./mason_packages/osx-${ARCH}. We should then enforce a minimum OS X version Mason will build for and stick to it. I propose 10.8 and we'd then enforce all packages are built with -mmacosx-version-min=10.8.

  2. We should not support 32 bit OS X since it is such a rare platform these days. I propose:

diff --git a/mason.sh b/mason.sh
index 78d76ba..385b587 100644
--- a/mason.sh
+++ b/mason.sh
@@ -37,7 +37,7 @@ if [ ${MASON_PLATFORM} = 'osx' ]; then

     MASON_SDK_ROOT=${MASON_XCODE_ROOT}/Platforms/MacOSX.platform/Developer
     MASON_SDK_PATH="${MASON_SDK_ROOT}/SDKs/MacOSX${MASON_PLATFORM_VERSION}.sdk"
-    export MASON_CFLAGS="-mmacosx-version-min=${MASON_PLATFORM_VERSION} -isysroot ${MASON_SDK_PATH} -arch i386 -arch x86_64"
+    export MASON_CFLAGS="-mmacosx-version-min=${MASON_PLATFORM_VERSION} -isysroot ${MASON_SDK_PATH} -arch x86_64"

Activity

  1. kkaefer commented on Dec 4, 2014

    @kkaefer
    Member

    Okay. What's your motivation for changing this?

  2. springmeyer commented on Dec 6, 2014

    @springmeyer
    ContributorAuthor

    Okay. What's your motivation for changing this?

    Then travis could build one set of binaries that will work on either OS X version.

  3. springmeyer commented on Jan 23, 2015

    @springmeyer
    ContributorAuthor

    About to move on fixing this. Before I do I'll note that the current usage of

    export MASON_CFLAGS="-mmacosx-version-min=${MASON_PLATFORM_VERSION} -isysroot ${MASON_SDK_PATH} -arch i386 -arch x86_64"

    Is broken/not doing anything because MASON_CFLAGS are not respected anywhere. I'm going to move to just setting CFLAGS and CXXFLAGS like #48 for now. We can revisit and use MASON prefixed name later on if avoiding clashes with parent env becomes an issue.

  4. added a commit that references this issue on Jan 23, 2015
    8e827cc
  5. kkaefer commented on Feb 27, 2015

    @kkaefer
    Member

    Agreed, macosx-x86_64 seems a lot saner.

  6. springmeyer commented on Oct 5, 2015

    @springmeyer
    ContributorAuthor

    This is mostly done in d43175d, but one big thing remains. Now that our binaries support 10.8 and greater we no longer need to version on the ${MASON_PLATFORM_VERSION}.

    The question is how to introduce this change without breaking the world...

  7. jfirebaugh commented on Mar 11, 2016

    @jfirebaugh
    Contributor

    ⇢ #118 / #131

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions