Files
Holzleitner---Backend--aktu…/build-x64.cmd
Dennis Nemec 1f63b828d8 build: x64-Cross-Build-Skript fuer Windows-ARM-Host
setzt CARGO_TARGET_DIR auf lokale Platte und baut Release fuer
x86_64-pc-windows-msvc. Auszufuehren in der x64 Native Tools Prompt.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-11 00:14:53 +02:00

40 lines
1.2 KiB
Batchfile

@echo off
REM ============================================================================
REM Holzleitner-Backend — x64 Release-Build (Cross-Build auf ARM-Host)
REM ----------------------------------------------------------------------------
REM Ausfuehren in der "x64 Native Tools Command Prompt for VS".
REM - CARGO_TARGET_DIR zeigt auf die lokale Platte (weg vom Netzlaufwerk).
REM - --target x86_64-pc-windows-msvc erzwingt x64, da der Host auf ARM laeuft.
REM Kein DB-Zugriff noetig zum Kompilieren.
REM ============================================================================
setlocal
set CARGO_TARGET_DIR=C:\cargo-target\holzleitner
set TARGET=x86_64-pc-windows-msvc
echo.
echo [build-x64] CARGO_TARGET_DIR = %CARGO_TARGET_DIR%
echo [build-x64] TARGET = %TARGET%
echo.
REM x64-Target sicherstellen (idempotent, no-op falls bereits installiert)
rustup target add %TARGET%
if errorlevel 1 goto :fail
cargo build --release --target %TARGET% %*
if errorlevel 1 goto :fail
echo.
echo [build-x64] OK. Binary unter:
echo %CARGO_TARGET_DIR%\%TARGET%\release\
echo.
endlocal
exit /b 0
:fail
echo.
echo [build-x64] FEHLGESCHLAGEN.
endlocal
exit /b 1