Files
hakorune/install_llvm_and_build.bat
Moe Charm 11506cee3b Phase 11-12: LLVM backend initial, semantics layer, plugin unification
Major changes:
- LLVM backend initial implementation (compiler.rs, llvm mode)
- Semantics layer integration in interpreter (operators.rs)
- Phase 12 plugin architecture revision (3-layer system)
- Builtin box removal preparation
- MIR instruction set documentation (26→Core-15 migration)
- Cross-backend testing infrastructure
- Await/nowait syntax support

New features:
- LLVM AOT compilation support (--backend llvm)
- Semantics layer for interpreter→VM flow
- Tri-backend smoke tests
- Plugin-only registry mode

Bug fixes:
- Interpreter plugin box arithmetic operations
- Branch test returns incorrect values

Documentation:
- Phase 12 README.md updated with new plugin architecture
- Removed obsolete NYIR proposals
- Added LLVM test programs documentation

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-01 23:44:34 +09:00

36 lines
994 B
Batchfile

@echo off
echo Installing LLVM 18.0.x via vcpkg and building Nyash...
REM Check if vcpkg exists
if not exist "C:\vcpkg\vcpkg.exe" (
echo ERROR: vcpkg not found at C:\vcpkg\vcpkg.exe
echo Please install vcpkg first
exit /b 1
)
echo Step 1: Installing LLVM via vcpkg with 24 threads...
cd C:\vcpkg
vcpkg install "llvm[core]:x64-windows"
echo Step 2: Setting environment variables...
set LLVM_SYS_180_PREFIX=C:\vcpkg\installed\x64-windows
set LLVM_SYS_NO_LIBFFI=1
set LLVM_SYS_180_STRICT_VERSIONING=0
set PATH=C:\vcpkg\installed\x64-windows\bin;%PATH%
echo Step 3: Checking LLVM installation...
if exist "C:\vcpkg\installed\x64-windows\bin\llvm-config.exe" (
echo LLVM installed successfully!
C:\vcpkg\installed\x64-windows\bin\llvm-config.exe --version
) else (
echo ERROR: llvm-config.exe not found
exit /b 1
)
echo Step 4: Building Nyash with LLVM support...
cd C:\git\nyash-project\nyash
cargo clean
cargo build --release --features llvm -j24
echo Done!
pause