]> gitweb.factorcode.org Git - factor.git/commitdiff
Remove implicit dependency on gcc for preprocessing, which is not needed.
authornomennescio <nomennescio@factorcode.org>
Fri, 19 Jan 2024 13:53:32 +0000 (14:53 +0100)
committernomennescio <nomennescio@factorcode.org>
Fri, 19 Jan 2024 13:54:53 +0000 (14:54 +0100)
This fixes the build on Cygwin and any other platform that uses crosscompilation.

GNUmakefile

index e72005222bb5deec2113900cca79695ff4a30b13..36d83ef5d10678fbb63409bbb6a3ac3e67e7417f 100644 (file)
@@ -260,7 +260,7 @@ $(FFI_TEST_LIBRARY): vm/ffi_test.o
        $(TOOLCHAIN_PREFIX)$(CC) $(CFLAGS) $(FFI_TEST_CFLAGS) $(SHARED_FLAG) -o $(FFI_TEST_LIBRARY) $(TEST_OBJS)
 
 vm/resources.o:
-       $(TOOLCHAIN_PREFIX)$(WINDRES) vm/factor.rs vm/resources.o
+       $(TOOLCHAIN_PREFIX)$(WINDRES) --preprocessor=cat vm/factor.rs vm/resources.o
 
 vm/ffi_test.o: vm/ffi_test.c
        $(TOOLCHAIN_PREFIX)$(CC) -c $(CFLAGS) $(FFI_TEST_CFLAGS) -std=c99 -o $@ $<