Commit e60de260 authored by Ajay Patel's avatar Ajay Patel

Use GCC to compile Mac

parent 0d35457b
Pipeline #36758900 canceled with stages
in 36 minutes and 23 seconds
......@@ -16,7 +16,9 @@ matrix:
- os: linux
script:
- export CXXFLAGS="-std=c++11"
- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- brew install gcc --without-multilib
- export CC="/usr/local/Cellar/gcc/8.2.0/bin/gcc-8"
- $PIP install pip setuptools -U
- $PIP install cibuildwheel==0.10.0
- eval "buildwheel() { cibuildwheel --output-dir wheelhouse >>buildwheel.log 2>&1; }"
......
......@@ -111,7 +111,7 @@ def get_modules(THIRD_PARTY, INTERNAL, PROJ_PATH,
ICU = os.path.relpath(SQLITE3 + '/icu_unix', PROJ_PATH)
includes = [os.path.relpath(SQLITE3, PROJ_PATH)]
libraries = [os.path.relpath(SQLITE3, PROJ_PATH)]
compile_args = ["-O4"] + (["-std=c++11"] if sys.platform != "darwin" else [])
compile_args = ["-O4", "-std=c++11"]
link_args = ["-flto"]
libraries.append(ICU)
includes.append(ICU)
......
......@@ -893,7 +893,7 @@ complete SQLite API into Python.""",
library_dirs=library_dirs,
libraries=libraries + (["user32", "Advapi32"] if sys.platform == "win32" else []), # PLASTICITY
define_macros=define_macros,
extra_compile_args=["-O4"] + (["-std=c++11"] if sys.platform != "darwin" else []), # PLASTICITY
extra_compile_args=["-O4", "-std=c++11"], # PLASTICITY
extra_link_args=["-flto"], # PLASTICITY
depends=depends)],
......
......@@ -294,7 +294,7 @@ def get_setup_args():
libraries=libraries + (["user32", "Advapi32"] if sys.platform == "win32" else []), # PLASTICITY
extra_objects=extra_objects,
define_macros=define_macros,
extra_compile_args=["-O4"] + (["-std=c++11"] if sys.platform != "darwin" else []), # PLASTICITY
extra_compile_args=["-O4", "-std=c++11"], # PLASTICITY
extra_link_args=["-flto"], # PLASTICITY
)],
classifiers = [
......
__version_info__ = ('0', '0', '49')
__version_info__ = ('0', '0', '50')
__version__ = '.'.join(__version_info__)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment