Skip to content

Commit

Permalink
Make c++17 default, link against onnxruntime if ONNX module is enabled (
Browse files Browse the repository at this point in the history
  • Loading branch information
JackTemaki authored Nov 7, 2024
1 parent 6441be5 commit 11e8ad6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/cc-gcc.make
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions config/os-linux.make
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 11e8ad6

Please sign in to comment.