From 5ab7041fa760c80063cb4a463530ac091b588845 Mon Sep 17 00:00:00 2001 From: baowenlei <40643946+baowenlei@users.noreply.github.com> Date: Sat, 16 Nov 2019 01:32:57 -0800 Subject: [PATCH] fix cross compile bug (#2415) --- onnxruntime/core/codegen/common/utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/codegen/common/utils.cc b/onnxruntime/core/codegen/common/utils.cc index 39b871b0c6..42f5ee6afa 100644 --- a/onnxruntime/core/codegen/common/utils.cc +++ b/onnxruntime/core/codegen/common/utils.cc @@ -70,7 +70,7 @@ TargetFeature GetTargetInfo(const codegen::CodeGenSettings& settings) { TargetFeature feature; std::string target_str = ""; - if (settings.HasOption(nuphar::kNupharCodeGenTarget) && settings.HasOption(nuphar::kNupharCachePath)) { + if (settings.HasOption(nuphar::kNupharCodeGenTarget)) { target_str = settings.GetOptionValue(nuphar::kNupharCodeGenTarget); }