From a3e0fc947593b03571b4b3991e09e9fb1dc0d126 Mon Sep 17 00:00:00 2001 From: Nick Rossenbach Date: Thu, 10 Oct 2024 10:44:13 +0200 Subject: [PATCH] set c++17, add ONNX to config --- config/cc-gcc.make | 2 +- config/os-linux.make | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/config/cc-gcc.make b/config/cc-gcc.make index 60bf7877..bc1417fe 100644 --- a/config/cc-gcc.make +++ b/config/cc-gcc.make @@ -27,7 +27,7 @@ CCFLAGS += -pipe CCFLAGS += -funsigned-char CCFLAGS += -fno-exceptions CFLAGS += -std=c99 -CXXFLAGS += -std=gnu++0x +CXXFLAGS += -std=gnu++17 CXXFLAGS += -Wno-unknown-pragmas #CCFLAGS += -pedantic CCFLAGS += -Wall diff --git a/config/os-linux.make b/config/os-linux.make index 9fe31725..46bdf5c1 100644 --- a/config/os-linux.make +++ b/config/os-linux.make @@ -62,6 +62,14 @@ TF_LDFLAGS += -Wl,-rpath -Wl,$(TF_COMPILE_BASE)/bazel-bin/tensorflow # USE_TENSORFLOW_MKL=1 endif + +ifdef MODULE_ONNX +LDFLAGS += -lonnxruntime +ifndef MODULE_TENSORFLOW +CXXFLAGS += -fexceptions +endif +endif + # ----------------------------------------------------------------------------- # system Libraries