Binary is in zig-out

This commit is contained in:
Piotr Usewicz
2021-06-23 19:06:28 +02:00
committed by mattn
parent d0cf5b4d42
commit 408414b382
2 changed files with 18 additions and 18 deletions

View File

@@ -1,16 +1,16 @@
@echo off
setlocal enabledelayedexpansion
git clone --recurse-submodules --depth=1 https://github.com/zigtools/zls .
zig build
move zig-cache\bin\zls.exe
rd /Q /S zig-cache src tests
for /f "usebackq tokens=1 delims==" %%f in (`where zig`) do (
set "f=%%~dpf"
set "f=!f:\=/!"
echo {"zig_lib_path":"!f!lib/zig","enable_snippets":true,"warn_style":true,"enable_semantic_tokens":true} > zls.json
goto break
)
:break
@echo off
setlocal enabledelayedexpansion
git clone --recurse-submodules --depth=1 https://github.com/zigtools/zls .
zig build
move zig-out\bin\zls.exe
rd /Q /S zig-cache zig-out src tests
for /f "usebackq tokens=1 delims==" %%f in (`where zig`) do (
set "f=%%~dpf"
set "f=!f:\=/!"
echo {"zig_lib_path":"!f!lib/zig","enable_snippets":true,"warn_style":true,"enable_semantic_tokens":true} > zls.json
goto break
)
:break

View File

@@ -2,8 +2,8 @@
git clone --recurse-submodules --depth=1 https://github.com/zigtools/zls .
zig build
mv zig-cache/bin/zls .
rm -rf zig-cache src tests
mv zig-out/bin/zls .
rm -rf zig-cache zig-out src tests
cat <<EOF > zls.json
{"zig_lib_path":"$(dirname $(which zig))/lib/zig","enable_snippets":true,"warn_style":true,"enable_semantic_tokens":true}
EOF