Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
One more try?
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkeyMan committed Jul 29, 2019
1 parent 4ac352f commit 782fdbf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ build_script:
- cd c:\projects\dmd\src
- msbuild vcbuild\dmd.sln /m /p:Configuration=Release;Platform=x64
- cd c:\projects\druntime
- setmscver.bat
- make -f win64.mak DMD=../dmd/generated/Windows/Release/x64/dmd CC=cl auto-tester-build auto-tester-test

test_script: true
8 changes: 4 additions & 4 deletions setmscver.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
echo _MSC_VER > ver.c
cl /nologo /EP ver.c > ver.txt
findstr /v /r /c:"^$" "ver.txt" > "ver_trim.txt"
set /P _MSC_VER=< ver_trim.txt
cl /nologo /EP ver.c > ver_raw.txt
findstr /v /r /c:"^$" "ver_raw.txt" > "ver.txt"
set /P _MSC_VER=< ver.txt
echo set _MSC_VER=%_MSC_VER%
del ver.c ver.txt ver_trim.txt
del ver.c ver_raw.txt
2 changes: 2 additions & 0 deletions test/stdcpp/win64.mak
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ MODEL=64
DRUNTIMELIB=druntime64.lib
CC=cl

_MSC_VER = $(file < ..\..\ver.txt)

TESTS= array allocator new string

test: $(TESTS)
Expand Down
2 changes: 1 addition & 1 deletion win64.mak
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ test_hash:

test_stdcpp:
setmscver.bat
"$(MAKE)" -f test\stdcpp\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" "_MSC_VER=$(_MSC_VER)" test
"$(MAKE)" -f test\stdcpp\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" test

test_gc:
"$(MAKE)" -f test\gc\win64.mak "DMD=$(DMD)" MODEL=$(MODEL) "VCDIR=$(VCDIR)" DRUNTIMELIB=$(DRUNTIME) "CC=$(CC)" test
Expand Down

0 comments on commit 782fdbf

Please sign in to comment.