Skip to content

Commit fa289f9

Browse files
madebrsjaeckel
authored andcommitted
build and test with dll on MSVC
1 parent 34e16d3 commit fa289f9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build_script:
1616
if "Visual Studio 2017"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
1717
if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64
1818
if "Visual Studio 2015"=="%APPVEYOR_BUILD_WORKER_IMAGE%" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
19-
nmake -f makefile.msvc all
19+
nmake -f makefile.msvc all CFLAGS="/Ox /MD"
2020
test_script:
2121
- cmd: test.exe
22+
- cmd: test_dll.exe

makefile.msvc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,15 @@ $(LIBMAIN_D) $(LIBMAIN_I): $(OBJECTS) tommath.def
7171

7272
#Build test suite
7373
test.exe: $(LIBMAIN_S) demo/shared.obj demo/test.obj
74-
cl $(LTM_CFLAGS) $(TOBJECTS) $(LIBMAIN_S) $(LTM_LDFLAGS) demo/shared.c demo/test.c /Fe$@
74+
link $(TOBJECTS) $(LTM_LDFLAGS) $? /out:$@
7575
@echo NOTICE: start the tests by launching test.exe
7676

77-
all: $(LIBMAIN_S) test.exe $(LIBMAIN_D)
77+
#Build test suite for dll
78+
test_dll.exe: $(LIBMAIN_I) demo/shared.obj demo/test.obj
79+
link $(TOBJECTS) $(LTM_LDFLAGS) $? /out:$@
80+
@echo NOTICE: start the tests by launching test_dll.exe
81+
82+
all: $(LIBMAIN_S) test.exe $(LIBMAIN_D) test_dll.exe
7883

7984
tune: $(LIBMAIN_S)
8085
$(MAKE) -C etc tune

0 commit comments

Comments
 (0)