Reenable sanitize (#4384)
* turn on sanitize, fix overrun * allow sanitize override, disable it for shared lib * probably fix android build
This commit is contained in:
parent
d9710a7389
commit
4643dc3c79
|
@ -24,7 +24,7 @@ jobs:
|
||||||
- name: Build Native Unit Tests as shared library
|
- name: Build Native Unit Tests as shared library
|
||||||
working-directory: ./unit_tests/
|
working-directory: ./unit_tests/
|
||||||
# we have a unit test of JNI thus we need to build shared library
|
# we have a unit test of JNI thus we need to build shared library
|
||||||
run: make -j4
|
run: make -j4 SANITIZE=no build/lib_rusefi_test
|
||||||
|
|
||||||
- name: Build Android
|
- name: Build Android
|
||||||
env:
|
env:
|
||||||
|
|
|
@ -31,8 +31,8 @@ jobs:
|
||||||
|
|
||||||
- name: Build Native Unit Tests as shared library
|
- name: Build Native Unit Tests as shared library
|
||||||
working-directory: ./unit_tests/
|
working-directory: ./unit_tests/
|
||||||
# we have a unit test of JNI thus we need to build shared library
|
# we have a unit test of JNI thus we need to build shared library
|
||||||
run: make -j4
|
run: make -j4 SANITIZE=no build/lib_rusefi_test
|
||||||
|
|
||||||
- name: Test console
|
- name: Test console
|
||||||
# at the moment 'jar' task does not depend on tests?! maybe because tests take some time?
|
# at the moment 'jar' task does not depend on tests?! maybe because tests take some time?
|
||||||
|
|
|
@ -89,7 +89,7 @@ VPATH = $(SRCPATHS)
|
||||||
# Makefile rules
|
# Makefile rules
|
||||||
#
|
#
|
||||||
|
|
||||||
all: $(OBJS) $(BINARY_OUTPUT) $(SHARED_OUTPUT) MAKE_ALL_RULE_HOOK
|
all: $(OBJS) $(BINARY_OUTPUT) MAKE_ALL_RULE_HOOK
|
||||||
|
|
||||||
MAKE_ALL_RULE_HOOK:
|
MAKE_ALL_RULE_HOOK:
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,13 @@ PCHSUB = unit_tests
|
||||||
|
|
||||||
include $(PROJECT_DIR)/rusefi_rules.mk
|
include $(PROJECT_DIR)/rusefi_rules.mk
|
||||||
|
|
||||||
ifneq ($(OS),Windows_NT)
|
# User may want to pass in a forced value for SANITIZE
|
||||||
# at the moment lib asan breaks JNI library
|
ifeq ($(SANITIZE),)
|
||||||
SANITIZE = no
|
ifneq ($(OS),Windows_NT)
|
||||||
else
|
SANITIZE = yes
|
||||||
SANITIZE = no
|
else
|
||||||
|
SANITIZE = no
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
IS_MAC = no
|
IS_MAC = no
|
||||||
|
|
Loading…
Reference in New Issue