Skip to content

Commit

Permalink
fix CMAKE_INTERPROCEDURAL_OPTIMIZATION flag generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jonkeane committed Aug 3, 2021
1 parent d27fd38 commit 02bd56a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion r/inst/build_arrow_static.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ fi

if echo "$ARROW_R_CXXFLAGS" | grep -q "flto"; then
ARROW_LTO="ON"
else
ARROW_LTO="OFF"
fi

mkdir -p "${BUILD_DIR}"
Expand Down Expand Up @@ -79,7 +81,7 @@ ${CMAKE} -DARROW_BOOST_USE_SHARED=OFF \
-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON \
-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON \
-DCMAKE_UNITY_BUILD=${CMAKE_UNITY_BUILD:-ON} \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=${ARROW_LTO:-ON} \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=${ARROW_LTO:-OFF} \
${EXTRA_CMAKE_FLAGS} \
-G ${CMAKE_GENERATOR:-"Unix Makefiles"} \
${SOURCE_DIR}
Expand Down

0 comments on commit 02bd56a

Please sign in to comment.