-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcompile.bat
More file actions
64 lines (62 loc) · 1.7 KB
/
compile.bat
File metadata and controls
64 lines (62 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
if not exist build mkdir build
if not exist build\obj mkdir build\obj
clang -o build/proxpl.exe -static -fms-runtime-lib=static -Iinclude -Isrc -D_CRT_SECURE_NO_WARNINGS -DPROX_STATIC ^
src/main.c ^
src/compiler/lexer/scanner.c ^
src/compiler/parser/ast.c ^
src/compiler/parser/parser.c ^
src/compiler/transpiler_ui.c ^
src/compiler/bytecode_gen.c ^
src/compiler/importer.c ^
src/compiler/ir.c ^
src/compiler/ir_gen.c ^
src/compiler/ir_opt.c ^
src/compiler/type_checker.c ^
src/runtime/chunk.c ^
src/runtime/compiler.c ^
src/runtime/debug.c ^
src/runtime/ffi_bridge.c ^
src/runtime/gc.c ^
src/runtime/memory.c ^
src/runtime/object.c ^
src/runtime/scheduler.c ^
src/runtime/table.c ^
src/runtime/value.c ^
src/runtime/vm.c ^
src/runtime/vm_helpers.c ^
src/utils/error_report.c ^
src/utils/pxcf.c ^
src/stdlib/collections_native.c ^
src/stdlib/convert_native.c ^
src/stdlib/core_native.c ^
src/stdlib/fs_native.c ^
src/stdlib/gc_native.c ^
src/stdlib/hash_native.c ^
src/stdlib/io_native.c ^
src/stdlib/json_native.c ^
src/stdlib/math_native.c ^
src/stdlib/net_native.c ^
src/stdlib/os_native.c ^
src/stdlib/reflect_native.c ^
src/stdlib/stdlib_core.c ^
src/stdlib/string_native.c ^
src/stdlib/sys_native.c ^
src/stdlib/system_native.c ^
src/stdlib/time_native.c ^
src/utils/md5.c ^
src/utils/sha256.c ^
src/prm/manifest.c ^
src/prm/builder.c ^
src/prm/commands/cmd_core.c
if %errorlevel% equ 0 (
move /y *.obj build\obj\ >nul 2>&1
move /y *.exp build\obj\ >nul 2>&1
move /y *.lib build\obj\ >nul 2>&1
move /y *.pdb build\obj\ >nul 2>&1
copy /y build\proxpl.exe . >nul 2>&1
echo Build complete.
) else (
echo Build FAILED. Check errors above.
exit /b 1
)