Skip to content

Commit

Permalink
fix: no error report when 'build' folder is already exists on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtsHsu committed Feb 17, 2024
1 parent e489a9e commit e14fd7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ run-tests cc=default_cc: (build-tests cc)
done

nmake-tests:
New-Item {{ outpath }} -ItemType Directory -ea 0
nmake -f nmakefile
Get-ChildItem build -Filter *.exe | Foreach-Object { & $_.FullName }
Get-ChildItem {{ outpath }} -Filter *.exe | Foreach-Object { & $_.FullName }

clean:
rm -r ./build
rm -r {{ outpath }}
2 changes: 0 additions & 2 deletions nmakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

CC = cl
INCLUDES = ./include
CXXFLAGS = /std:c++20 /EHs /Wall /Fo./build/
Expand All @@ -7,7 +6,6 @@ EXES = $(**:.cpp=.exe)

.SUFFIXES: .cpp .exe
all: tests\*.cpp
mkdir build
$(MAKE) /f nmakefile $(EXES:tests=build)

{tests\}.cpp{build\}.exe:
Expand Down

0 comments on commit e14fd7c

Please sign in to comment.