Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
5ef36f10
Commit
5ef36f10
authored
Apr 07, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix build on macos
parent
125df71e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
tensorpack/user_ops/Makefile
tensorpack/user_ops/Makefile
+14
-2
No files found.
tensorpack/user_ops/Makefile
View file @
5ef36f10
...
@@ -3,7 +3,13 @@
...
@@ -3,7 +3,13 @@
OBJ_DIR
=
obj
OBJ_DIR
=
obj
CXX
?=
g++
UNAME_S
:=
$(
shell
uname
-s
)
ifeq
($(UNAME_S),Linux)
CXX
?=
g++
endif
ifeq
($(UNAME_S),Darwin)
CXX
?=
clang++
endif
OPTFLAGS
?=
-O3
-march
=
native
OPTFLAGS
?=
-O3
-march
=
native
#OPTFLAGS ?= -g3 -fsanitize=address,undefined -O2 -lasan
#OPTFLAGS ?= -g3 -fsanitize=address,undefined -O2 -lasan
...
@@ -17,10 +23,16 @@ LDFLAGS += $(shell pkg-config $(LIBS) --libs)
...
@@ -17,10 +23,16 @@ LDFLAGS += $(shell pkg-config $(LIBS) --libs)
CXXFLAGS
+=
$(INCLUDE_DIR)
CXXFLAGS
+=
$(INCLUDE_DIR)
CXXFLAGS
+=
-Wall
-Wextra
CXXFLAGS
+=
-Wall
-Wextra
CXXFLAGS
+=
$(DEFINES)
-std
=
c++11
$(OPTFLAGS)
-fPIC
CXXFLAGS
+=
$(DEFINES)
-std
=
c++11
$(OPTFLAGS)
-fPIC
CXXFLAGS
+=
-D_GLIBCXX_USE_CXX11_ABI
=
0
# https://github.com/tensorflow/tensorflow/issues/1569
# https://github.com/tensorflow/tensorflow/issues/1569
# You may need to disable this flag if you compile tensorflow yourself with gcc>=5
CXXFLAGS
+=
-D_GLIBCXX_USE_CXX11_ABI
=
0
LDFLAGS
+=
$(OPTFLAGS)
LDFLAGS
+=
$(OPTFLAGS)
LDFLAGS
+=
-shared
-fPIC
LDFLAGS
+=
-shared
-fPIC
ifeq
($(UNAME_S),Darwin)
LDFLAGS
+=
-Wl
,-undefined
-Wl
,dynamic_lookup
endif
SHELL
=
bash
SHELL
=
bash
# sources to include
# sources to include
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment