-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(turborepo): Scripts to build a debug version on windows (#5007)
Co-authored-by: Greg Soltis <Greg Soltis>
- Loading branch information
Greg Soltis
authored
Jun 22, 2023
1 parent
98d898b
commit 33f2d25
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
cd ..\crates\turborepo-ffi | ||
cargo build --target x86_64-pc-windows-gnu --target-dir .\target | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
copy .\target\x86_64-pc-windows-gnu\debug\libturborepo_ffi.a ..\..\cli\internal\ffi\libturborepo_ffi_windows_amd64.a | ||
copy .\bindings.h ..\..\cli\internal\ffi\bindings.h | ||
|
||
cd ..\..\cli | ||
|
||
protoc -I..\crates\ ..\crates\turborepo-ffi\messages.proto --go_out=.\internal\ | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative internal\turbodprotocol\turbod.proto | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
SET CGO_ENABLED=1 | ||
go build -tags=rust -o go-turbo.exe .\cmd\turbo | ||
if %errorlevel% neq 0 exit /b %errorlevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
cd ..\crates\turborepo | ||
cargo build --target x86_64-pc-windows-gnu | ||
if %errorlevel% neq 0 exit /b %errorlevel% | ||
|
||
copy ..\..\target\x86_64-pc-windows-gnu\debug\turbo.exe ..\..\target\debug\turbo.exe | ||
cd ..\..\cli |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters