diff --git a/.github/workflows/build-rusEFI-console.yaml b/.github/workflows/build-rusEFI-console.yaml index 8fad26c64f..8f57f873c0 100644 --- a/.github/workflows/build-rusEFI-console.yaml +++ b/.github/workflows/build-rusEFI-console.yaml @@ -31,8 +31,8 @@ jobs: - name: Build Native Unit Tests as shared library working-directory: ./unit_tests/ -# we have a unit test of JNI thus we need to build shared library - run: make -j4 + # we have a unit test of JNI thus we need to build shared library + run: make -j4 SANITIZE=no build/lib_rusefi_test - name: Test console # at the moment 'jar' task does not depend on tests?! maybe because tests take some time? diff --git a/unit_tests/rules.mk b/unit_tests/rules.mk index 398980c83b..30a967943a 100644 --- a/unit_tests/rules.mk +++ b/unit_tests/rules.mk @@ -89,7 +89,7 @@ VPATH = $(SRCPATHS) # Makefile rules # -all: $(OBJS) $(BINARY_OUTPUT) $(SHARED_OUTPUT) MAKE_ALL_RULE_HOOK +all: $(OBJS) $(BINARY_OUTPUT) MAKE_ALL_RULE_HOOK MAKE_ALL_RULE_HOOK: diff --git a/unit_tests/unit_test_rules.mk b/unit_tests/unit_test_rules.mk index 8cc941d35b..1888acae53 100644 --- a/unit_tests/unit_test_rules.mk +++ b/unit_tests/unit_test_rules.mk @@ -14,11 +14,13 @@ PCHSUB = unit_tests include $(PROJECT_DIR)/rusefi_rules.mk -ifneq ($(OS),Windows_NT) -# at the moment lib asan breaks JNI library - SANITIZE = no -else - SANITIZE = no +# User may want to pass in a forced value for SANITIZE +ifeq ($(SANITIZE),) + ifneq ($(OS),Windows_NT) + SANITIZE = yes + else + SANITIZE = no + endif endif IS_MAC = no