From 6761a9302c427e53ef9786291c45e01cc128e2ff Mon Sep 17 00:00:00 2001 From: Karim Vadsariya Date: Thu, 23 Jan 2025 23:38:52 -0800 Subject: [PATCH] Update tools/ci_build/build.py Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- tools/ci_build/build.py | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index a0207fc02f956..cc733f859fe0b 100644 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -1049,16 +1049,11 @@ def generate_build_tree( "-Donnxruntime_USE_TENSORRT_BUILTIN_PARSER=" + ("ON" if args.use_tensorrt_builtin_parser and not args.use_tensorrt_oss_parser else "OFF"), # interface variables are used only for building onnxruntime/onnxruntime_shared.dll but not EPs - "-Donnxruntime_USE_TENSORRT_INTERFACE=" - + ("ON" if args.enable_generic_interface else "OFF"), - "-Donnxruntime_USE_CUDA_INTERFACE=" - + ("ON" if args.enable_generic_interface else "OFF"), - "-Donnxruntime_USE_OPENVINO_INTERFACE=" - + ("ON" if args.enable_generic_interface else "OFF"), - "-Donnxruntime_USE_VITISAI_INTERFACE=" - + ("ON" if args.enable_generic_interface else "OFF"), - "-Donnxruntime_USE_QNN_INTERFACE=" - + ("ON" if args.enable_generic_interface else "OFF"), + "-Donnxruntime_USE_TENSORRT_INTERFACE=" + ("ON" if args.enable_generic_interface else "OFF"), + "-Donnxruntime_USE_CUDA_INTERFACE=" + ("ON" if args.enable_generic_interface else "OFF"), + "-Donnxruntime_USE_OPENVINO_INTERFACE=" + ("ON" if args.enable_generic_interface else "OFF"), + "-Donnxruntime_USE_VITISAI_INTERFACE=" + ("ON" if args.enable_generic_interface else "OFF"), + "-Donnxruntime_USE_QNN_INTERFACE=" + ("ON" if args.enable_generic_interface else "OFF"), # set vars for migraphx "-Donnxruntime_USE_MIGRAPHX=" + ("ON" if args.use_migraphx else "OFF"), "-Donnxruntime_DISABLE_CONTRIB_OPS=" + ("ON" if args.disable_contrib_ops else "OFF"),