blob: 842e3bb24de1461335cd9a3cb0c92f7b3634b4f2 [file] [log] [blame]
build --action_env=BAZEL_CXXOPTS="-std=c++17"
build --cxxopt='-std=c++17'
build --conlyopt='-std=c11'
# Bazel embedded enables the following feature which along with -std=c11 and
# our codebase generates a lot of warnings by setting the -Wpedantic flag
build --copt='-Wno-pedantic'
# Enable toolchain resolution with cc
build --incompatible_enable_cc_toolchain_resolution
build:kelvin --platforms=//platforms/riscv32:kelvin
# Set preprocessor defines for tflite-micro.
build --copt=-DTF_LITE_USE_GLOBAL_CMATH_FUNCTIONS
build --copt=-DTF_LITE_USE_GLOBAL_MIN
build --copt=-DTF_LITE_USE_GLOBAL_MAX
build --copt=-DTF_LITE_MCU_DEBUG_LOG
build:opt --copt=-DTF_LITE_STRIP_ERROR_STRINGS
build --use_top_level_targets_for_symlinks=false