Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set c++17, add ONNX to config #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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