mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-15 14:53:43 +00:00
Begin Type_Info
Missing stuff in records, procedures, and tuples
This commit is contained in:
12
src/main.cpp
12
src/main.cpp
@@ -41,6 +41,7 @@ i32 win32_exec_command_line_app(char *fmt, ...) {
|
||||
}
|
||||
|
||||
|
||||
#if 0
|
||||
#define INIT_TIMER() u64 start_time, end_time = 0, total_time = 0; start_time = gb_utc_time_now()
|
||||
#define PRINT_TIMER(section) do { \
|
||||
u64 diff; \
|
||||
@@ -54,6 +55,11 @@ i32 win32_exec_command_line_app(char *fmt, ...) {
|
||||
#define PRINT_ACCUMULATION() do { \
|
||||
gb_printf_err("Total compilation time: %lld ms\n", total_time/1000); \
|
||||
} while (0)
|
||||
#else
|
||||
#define INIT_TIMER()
|
||||
#define PRINT_TIMER(section)
|
||||
#define PRINT_ACCUMULATION()
|
||||
#endif
|
||||
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
@@ -117,8 +123,10 @@ int main(int argc, char **argv) {
|
||||
|
||||
|
||||
i32 exit_code = 0;
|
||||
// For more passes arguments: http://llvm.org/docs/Passes.html
|
||||
exit_code = win32_exec_command_line_app(
|
||||
"../misc/llvm-bin/opt %s -o %.*s.bc "
|
||||
// "../misc/llvm-bin/opt %s -o %.*s.bc "
|
||||
"opt %s -o %.*s.bc "
|
||||
"-memcpyopt "
|
||||
"-mem2reg "
|
||||
"-die -dse "
|
||||
@@ -144,7 +152,7 @@ int main(int argc, char **argv) {
|
||||
}
|
||||
|
||||
exit_code = win32_exec_command_line_app(
|
||||
"clang %.*s.bc -o %.*s.o "
|
||||
"clang %.*s.bc -o %.*s.exe "
|
||||
"-O0 "
|
||||
"-Wno-override-module "
|
||||
"%s",
|
||||
|
||||
Reference in New Issue
Block a user