summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.win3
-rw-r--r--test/Makefile.win3
2 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.win b/Makefile.win
index 60377970d..b2c2f07c4 100644
--- a/Makefile.win
+++ b/Makefile.win
@@ -45,7 +45,8 @@ USEDSW=1
PREFIX=..\apr-dist
-!IF [$(COMSPEC) /c cl /nologo /? | find "x64" >NUL ] == 0
+!IF [$(COMSPEC) /c cl /nologo /? \
+ | $(SystemRoot)\System32\find.exe "x64" >NUL ] == 0
ARCH=x64 Release
!ELSE
ARCH=Win32 Release
diff --git a/test/Makefile.win b/test/Makefile.win
index 4050c9aac..2e7842f16 100644
--- a/test/Makefile.win
+++ b/test/Makefile.win
@@ -33,7 +33,8 @@ OUTDIR=LibR
OUTDIR=Release
!ENDIF
-!IF [$(COMSPEC) /c cl /nologo /? | find "x64" >NUL ] == 0
+!IF [$(COMSPEC) /c cl /nologo /? \
+ | $(SystemRoot)\System32\find.exe "x64" >NUL ] == 0
OUTDIR=x64\$(OUTDIR)
!ENDIF
!ENDIF