Don't hardcode the compiler name in testcase.mk

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 97d96b897d
commit ff9db36814
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -1,5 +1,6 @@
top_dir := $(dir $(lastword ${MAKEFILE_LIST}))../..
include $(top_dir)/etc/makefiles/arduino-cli-prop.mk
build_dir := ${top_dir}/_build/${testcase}
@ -52,7 +53,7 @@ compile-sketch:
OUTPUT_PATH="${LIB_DIR}" \
VERBOSE=${VERBOSE} \
$(MAKE) -f ${top_dir}/testing/makefiles/delegate.mk compile
g++ -o "${BIN_DIR}/${BIN_FILE}" \
$(call _arduino_prop,compiler.cpp.cmd) -o "${BIN_DIR}/${BIN_FILE}" \
-lpthread \
-g \
-w \
@ -84,7 +85,7 @@ endif
${OBJ_DIR}/%.o: ${SRC_DIR}/%.cpp
@echo "compile $@"
install -d "${OBJ_DIR}"
g++ -o "$@" -c \
$(call _arduino_prop,compiler.cpp.cmd) -o "$@" -c \
-std=c++14 \
-I${top_dir} \
-I${top_dir}/src \

Loading…
Cancel
Save