Merge pull request #39910 from vinceab:master
PiperOrigin-RevId: 314068349 Change-Id: I9bbe842e2e8ba3dabae435c063295e823f20de30
This commit is contained in:
commit
3ffb4ad2d4
@ -58,7 +58,7 @@ LIBS := \
|
||||
# There are no rules for compiling objects for the host system (since we don't
|
||||
# generate things like the protobuf compiler that require that), so all of
|
||||
# these settings are for the target compiler.
|
||||
CFLAGS := -O3 -DNDEBUG -fPIC
|
||||
CFLAGS := -O3 -DNDEBUG -fPIC $(EXTRA_CFLAGS)
|
||||
CXXFLAGS := $(CFLAGS) --std=c++11 $(EXTRA_CXXFLAGS)
|
||||
LDOPTS := -L/usr/local/lib
|
||||
ARFLAGS := -r
|
||||
|
@ -58,7 +58,9 @@ elif TARGET == 'aarch64':
|
||||
os.environ['CC'] = 'aarch64-linux-gnu-gcc'
|
||||
|
||||
MAKE_CROSS_OPTIONS = []
|
||||
for name in ['TARGET', 'TARGET_ARCH', 'CC_PREFIX', 'EXTRA_CXXFLAGS']:
|
||||
for name in [
|
||||
'TARGET', 'TARGET_ARCH', 'CC_PREFIX', 'EXTRA_CXXFLAGS', 'EXTRA_CFLAGS'
|
||||
]:
|
||||
value = os.environ.get('TENSORFLOW_%s' % name)
|
||||
if value:
|
||||
MAKE_CROSS_OPTIONS.append('%s=%s' % (name, value))
|
||||
|
Loading…
Reference in New Issue
Block a user