19 lines
346 B
Batchfile
19 lines
346 B
Batchfile
@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
|