Skip to content

Commit

Permalink
Batch file
Browse files Browse the repository at this point in the history
Added batch file to compile library on Windows
  • Loading branch information
JASory authored Dec 1, 2023
1 parent b7c226e commit 3e9f6db
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions primality.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
mkdir libprime
echo Select 1 for Default, 2 for Small, or 3 for Tiny
set /p flag=""
if %flag%==1 (rustc -C opt-level="3" src/lib.rs -o libprime/prime.dll --crate-type cdylib --target x86_64-pc-windows-msvc
echo Built the Default variant)
if %flag%==2 (rustc -C opt-level="3" src/lib.rs -o libprime/prime.dll --crate-type cdylib --target x86_64-pc-windows-msvc --cfg feature=\"small\"
echo Built the Small variant)
if %flag%==3 (rustc -C opt-level="3" src/lib.rs -o libprime/prime.dll --crate-type cdylib --target x86_64-pc-windows-msvc --cfg feature=\"tiny\"
echo Built the Tiny variant)
pause

0 comments on commit 3e9f6db

Please sign in to comment.