Skip to content

Commit

Permalink
feat: more refining
Browse files Browse the repository at this point in the history
  • Loading branch information
darshankabariya committed Oct 11, 2024
1 parent 7ff7b38 commit b948ea9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,11 @@ FORMAT_MSG := "\\x1B[95mFormatting:\\x1B[39m"
OS := Windows_NT

ifeq ($(OS),Windows_NT)
# Define a new temporary directory for Windows
TMP_DIR := $(HOME)/status-work/nwaku/tmp
$(shell mkdir -p $(TMP_DIR))
export TMP := $(TMP_DIR)
export TEMP := $(TMP_DIR)

# Add the necessary libraries to the linker flags
LIBS = -static -lws2_32 -lbcrypt -luserenv -lntdll
NIM_PARAMS += $(foreach lib,$(LIBS),--passL:"$(lib)")
endif

# WINDOWS_LIBS = -lws2_32 -lcrypt32 -luserenv -lntdll -lkernel32 -luser32 -ladvapi32
# ifeq ($(OS),Windows_NT)
# LDFLAGS += $(WINDOWS_LIBS)
# endif

ifeq ($(NIM_PARAMS),)
# "variables.mk" was not included, so we update the submodules.
GIT_SUBMODULE_UPDATE := git submodule update --init --recursive
Expand Down Expand Up @@ -235,7 +224,7 @@ testwaku: | build deps anvil librln

wakunode2: | build deps librln
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim wakunode2 $(NIM_PARAMS) --passL:"-lwaku" waku.nims
$(ENV_SCRIPT) nim wakunode2 $(NIM_PARAMS) waku.nims

benchmarks: | build deps librln
echo -e $(BUILD_MSG) "build/$@" && \
Expand Down
4 changes: 1 addition & 3 deletions config.nims
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ if defined(windows):
switch("passL", "-L./build/")
switch("passL", "rln.lib")

for path in listDirs("~/.nimble/pkgs"):
echo "----------------------------------------------"
echo path
for path in listDirs("vendor/.nimble/pkgs/"):
switch("path", path)

# Automatically add all vendor subdirectories
Expand Down

0 comments on commit b948ea9

Please sign in to comment.