MCPcopy Create free account
hub / github.com/apache/singa / get_cpp_flags

Function get_cpp_flags

setup.py:192–199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191
192def get_cpp_flags():
193 default_flags = ['-std=c++11', '-fPIC', '-g', '-O2', '-Wall', '-pthread']
194 # avx_flags = [ '-mavx'] #'-mf16c',
195 if sys.platform == 'darwin':
196 # Darwin most likely will have Clang, which has libc++.
197 return default_flags + ['-stdlib=libc++']
198 else:
199 return default_flags
200
201
202def generate_proto_files():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected