-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpsyc.psy
More file actions
53 lines (45 loc) · 808 Bytes
/
Copy pathpsyc.psy
File metadata and controls
53 lines (45 loc) · 808 Bytes
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
main : func(pargs : program_args? -> s32)
{
if(!psyc_setup(pargs))
{
return 0;
}
// get the current cwd
oldcwd : u8? mut;
oldcwdlen : u64 mut;
directory_get_cwd(ref oldcwd, ref oldcwdlen, global_arena);
compile_program();
directory_set_cwd(oldcwd, oldcwdlen, global_arena);
psyc_report_timings();
destroy_arenas();
return 0;
};
== debug ==
{
_base();
add_build_file_with_config("./libpsyc.psy", "debug");
};
== release ==
{
_base();
add_build_file_with_config("./libpsyc.psy", "release");
};
== default ==
{
_base();
add_build_file_with_config("./libpsyc.psy", "default");
};
== llvm ==
{
_base();
add_build_file_with_config("./libpsyc.psy", "llvm");
};
== psyir ==
{
_base();
add_build_file_with_config("./libpsyc.psy", "psyir");
};
== _base ==
{
executable("psyc_out");
};