Skip to content

Instantly share code, notes, and snippets.

View Delphier's full-sized avatar
🎯
Focusing

Delphier

🎯
Focusing
View GitHub Profile
@Delphier
Delphier / jcl_latest.py
Last active December 25, 2023 03:45
Download and extract latest Delphi JCL daily: https://github.com/project-jedi/jcl
import os
import shutil
import subprocess
import urllib.request
import xml.etree.ElementTree as ET
from pathlib import Path
DAILY_URL = "https://jcl.sourceforge.net/daily/"
DAILY_URL_XML = f"{DAILY_URL}?xml=yes"
@Delphier
Delphier / MSVC-Portable.md
Last active December 15, 2023 10:15 — forked from mmozeiko/!README.md
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone 64-bit MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for 64-bit native desktop app development.

Run python.exe msvc_portable.py and it will download output into MSVC folder. By default it will download latest available MSVC & Windows SDK.

You can list available versions with python.exe msvc_portable.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe from output folder, first run msvcvars.bat - after that PATH/INCLUDE/LIB env variables will be setup to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running msvcvars.bat, pass extra /winsysroot MSVC argument (MSVC is folder name where output is stored).