Skip to content

Commit cd2d96f

Browse files
committed
add -arch flags for macos x86_64 build
1 parent b81d02f commit cd2d96f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/build_steps.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ function before_build {
1111
if [ -n "$IS_OSX" ]; then
1212
sudo mkdir -p /usr/local/lib
1313
sudo chmod 777 /usr/local/lib
14+
touch /usr/local/lib/.dir_exists
1415
source ${ROOT_DIR}/multibuild/osx_utils.sh
1516
get_macpython_environment ${MB_PYTHON_VERSION} venv
1617
source ${ROOT_DIR}/gfortran-install/gfortran_utils.sh
@@ -153,6 +154,7 @@ function do_build_lib {
153154
local target="CORE2"
154155
# Pick up the gfortran runtime libraries
155156
export DYLD_LIBRARY_PATH=/usr/local/lib:$DYLD_LIBRARY_PATH
157+
CFLAGS="$CFLAGS -arch x86_64"
156158
;;
157159
*-i686)
158160
local bitness=32

0 commit comments

Comments
 (0)