mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
Empty double quota "" is passed to find_package(Thread), causing a test command gcc ... "" ... failed while trying to compile a source file with empty name. (#1508)
``` [user@******** /]# gcc "" gcc: error: : No such file or directory gcc: fatal error: no input files compilation terminated. ```
This commit is contained in:
parent
be16b274fc
commit
33ae28ccb1
1 changed files with 2 additions and 2 deletions
4
cmake/external/mkldnn.cmake
vendored
4
cmake/external/mkldnn.cmake
vendored
|
|
@ -62,9 +62,9 @@ if (onnxruntime_USE_MKLDNN)
|
|||
set (MKLDNN_CMAKE_EXTRA_ARGS)
|
||||
if(NOT onnxruntime_BUILD_FOR_NATIVE_MACHINE)
|
||||
# pre-v1.0
|
||||
list(APPEND MKLDNN_CMAKE_EXTRA_ARGS "-DARCH_OPT_FLAGS=\"\"")
|
||||
list(APPEND MKLDNN_CMAKE_EXTRA_ARGS "-DARCH_OPT_FLAGS=")
|
||||
# v1.0
|
||||
list(APPEND MKLDNN_CMAKE_EXTRA_ARGS "-DMKLDNN_ARCH_OPT_FLAGS=\"\"")
|
||||
list(APPEND MKLDNN_CMAKE_EXTRA_ARGS "-DMKLDNN_ARCH_OPT_FLAGS=")
|
||||
set(MKLDNN_PATCH_COMMAND1 git apply ${CMAKE_SOURCE_DIR}/patches/mkldnn/mem-patch.cmake.patch)
|
||||
# discard prior changes due to patching in mkldnn source to unblock incremental builds.
|
||||
set(MKLDNN_PATCH_DISCARD_COMMAND cd ${MKLDNN_SOURCE} && git checkout -- .)
|
||||
|
|
|
|||
Loading…
Reference in a new issue