Skip to content

Commit 05f7d30

Browse files
authored
Merge pull request #11034 from jacquesqiao/fix-compile-by-std-move
Fix compile error on mac caused by std move
2 parents 03f2f3d + 96be582 commit 05f7d30

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

paddle/contrib/inference/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
# limitations under the License.
1414
#
1515

16+
if(APPLE)
17+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=pessimizing-move")
18+
endif(APPLE)
19+
1620
function(inference_api_test TARGET_NAME TEST_SRC)
1721
set(options "")
1822
set(oneValueArgs "")

0 commit comments

Comments
 (0)