tflite/tools/make: replace CCFLAGS with CFLAGS
This commit is contained in:
parent
306d335dde
commit
413effbdae
@ -57,7 +57,7 @@ LIBS := \
|
||||
# these settings are for the target compiler.
|
||||
CXXFLAGS := -O3 -DNDEBUG -fPIC
|
||||
CXXFLAGS += $(EXTRA_CXXFLAGS)
|
||||
CCFLAGS := ${CXXFLAGS}
|
||||
CFLAGS := ${CXXFLAGS}
|
||||
CXXFLAGS += --std=c++11
|
||||
CFLAGS :=
|
||||
LDOPTS := -L/usr/local/lib
|
||||
@ -206,7 +206,7 @@ $(OBJDIR)%.o: %.cc
|
||||
# For normal manually-created TensorFlow C++ source files.
|
||||
$(OBJDIR)%.o: %.c
|
||||
@mkdir -p $(dir $@)
|
||||
$(CC) $(CCFLAGS) $(INCLUDES) -c $< -o $@
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
|
||||
|
||||
# The target that's compiled if there's no command-line arguments.
|
||||
all: $(LIB_PATH) $(MINIMAL_BINARY) $(BENCHMARK_BINARY)
|
||||
|
@ -11,7 +11,7 @@ ifeq ($(TARGET),aarch64)
|
||||
-ftree-vectorize \
|
||||
-fPIC
|
||||
|
||||
CCFLAGS += \
|
||||
CFLAGS += \
|
||||
-march=armv8-a \
|
||||
-funsafe-math-optimizations \
|
||||
-ftree-vectorize \
|
||||
|
@ -31,8 +31,8 @@ ifeq ($(TARGET), ios)
|
||||
${IPHONEOS_SYSROOT} \
|
||||
-arch $(TARGET_ARCH) \
|
||||
-O3
|
||||
CCFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
|
||||
-fembed-bitcode \
|
||||
CFLAGS += -miphoneos-version-min=$(MIN_SDK_VERSION) \
|
||||
-fembed-bitcode \
|
||||
-mno-thumb \
|
||||
-isysroot \
|
||||
${IPHONEOS_SYSROOT} \
|
||||
|
@ -4,7 +4,7 @@ ifeq ($(TARGET), linux)
|
||||
-fPIC \
|
||||
-DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \
|
||||
-pthread
|
||||
CCFLAGS += \
|
||||
CFLAGS += \
|
||||
-fPIC \
|
||||
-DGEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK \
|
||||
-pthread
|
||||
|
@ -13,7 +13,7 @@ ifeq ($(TARGET),rpi)
|
||||
-ftree-vectorize \
|
||||
-fPIC
|
||||
|
||||
CCFLAGS += \
|
||||
CFLAGS += \
|
||||
-march=armv7-a \
|
||||
-mfpu=neon-vfpv4 \
|
||||
-funsafe-math-optimizations \
|
||||
@ -37,7 +37,7 @@ ifeq ($(TARGET),rpi)
|
||||
-ftree-vectorize \
|
||||
-fPIC
|
||||
|
||||
CCFLAGS += \
|
||||
CFLAGS += \
|
||||
-march=armv6 \
|
||||
-mfpu=vfp \
|
||||
-funsafe-math-optimizations \
|
||||
|
Loading…
x
Reference in New Issue
Block a user