summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPiotr Fusik <piotr@fusion-lang.org>2024-02-22 15:26:17 +0100
committerPiotr Fusik <piotr@fusion-lang.org>2024-02-22 15:26:17 +0100
commit88c19dd5488d744841f7555096a8fd80f1789a32 (patch)
tree92bfd403b074fec01ef3f6af34b371e39c9ef58c
parent3c25bd27c8970d9c2c8479d564bee707982e2946 (diff)
[test] No ICU on Windows.
#147
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f2c9348..76b0cf3 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,7 @@ ifeq ($(shell uname),Linux)
TEST_CFLAGS += -fsanitize=address -g
TEST_CXXFLAGS += -fsanitize=address -g
endif
+TEST_CXXFLAGS += $(if $(findstring $*, StringToLower StringToUpper), -licuuc)
JAVACPSEP = :
SWIFTC += -sanitize=address
endif
@@ -181,7 +182,7 @@ test/bin/%/c.exe: test/bin/%/Test.c
$(DO)$(CC) -o $@ $(TEST_CFLAGS) -Wno-unused-function -I $(<D) $^ `pkg-config --cflags --libs glib-2.0` -lm || grep '//FAIL:.*\<c\>' test/$*.fu
test/bin/%/cpp.exe: test/bin/%/Test.cpp
- $(DO)$(CXX) -o $@ $(TEST_CXXFLAGS) -I $(<D) $^ $(if $(findstring $*, StringToLower StringToUpper), -licuuc) || grep '//FAIL:.*\<cpp\>' test/$*.fu
+ $(DO)$(CXX) -o $@ $(TEST_CXXFLAGS) -I $(<D) $^ || grep '//FAIL:.*\<cpp\>' test/$*.fu
test/bin/%/cs.dll: test/bin/%/Test.cs
$(DO)$(CSC) -out:$@ $^ || grep '//FAIL:.*\<cs\>' test/$*.fu