Documentation Home
MySQL Internals Manual


MySQL Internals Manual  /  ...  /  Compiling for Different Hardware Architectures

4.5.4 Compiling for Different Hardware Architectures

  • GCC (on Linux) or Sun Studio

    Use compile option -m32 (force 32-bit build), -m64 (force 64-bit build)

  • Windows, Visual Studio generator

    Use cmake path_to_source_dir -G "Visual Studio 10 2010 Win64" to compile 64-bit (x64)

  • Mac OS X

    Use the CMAKE_OSX_ARCHITECTURES CMake option. You can set more than a single architecture to create a universal binary. For example, this command configures a universal binary with 32-bit intel / 32-bit powerpc:

    cmake path_to_source -DCMAKE_OSX_ARCHITECTURES="i386;pcc"

    This command configures an x86_64 binary:

    cmake path_to_source -DCMAKE_OSX_ARCHITECTURES="x86_64"

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.