mr4th-dynamic-linking/clang/build_win32_before_main_v2.bat

19 lines
346 B
Batchfile
Raw Permalink Normal View History

@echo off
REM: It turns out the gcc syntax __attribute__((constructor)) works
REM: on clang even for windows builds. You can run this script to
REM: see for yourself.
REM: Path setup
cd ..\linux_before_main
SET src=%cd%
cd ..
if not exist "build\" mkdir build
cd build
REM: Build
clang %src%\linux_before_main.c -o win32_before_main_v2.exe