From a51c0d7b32bcfce38cd8c9ec5fa83d4d1e308cb1 Mon Sep 17 00:00:00 2001 From: DarshanBPatel Date: Sat, 12 Oct 2024 01:55:35 +0530 Subject: [PATCH] chore: no need to to build path --- Makefile | 3 ++- config.nims | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index dd54cbf022..006bb1709a 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ FORMAT_MSG := "\\x1B[95mFormatting:\\x1B[39m" OS := Windows_NT ifeq ($(OS),Windows_NT) + cc := clang # Add the necessary libraries to the linker flags LIBS = -static -lws2_32 -lbcrypt -luserenv -lntdll NIM_PARAMS += $(foreach lib,$(LIBS),--passL:"$(lib)") @@ -438,7 +439,7 @@ libwaku-android: cwaku_example: | build libwaku echo -e $(BUILD_MSG) "build/$@" && \ - cc -o "build/$@" \ + clang -o "build/$@" \ ./examples/cbindings/waku_example.c \ ./examples/cbindings/base64.c \ -lwaku -Lbuild/ \ diff --git a/config.nims b/config.nims index 9bb08e9432..a75f38f160 100644 --- a/config.nims +++ b/config.nims @@ -6,7 +6,6 @@ else: switch("nimcache", "nimcache/debug/$projectName") if defined(windows): - switch("passL", "-L./build/") switch("passL", "rln.lib") for path in listDirs("vendor/.nimble/pkgs/"):