aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-01-20 16:15:05 +0000
committergingerBill <bill@gingerbill.org>2018-01-20 16:15:05 +0000
commit4e90644527adc531134d74d5a5eb1d5cafb6bc95 (patch)
tree102d5b48d80213c545189c3eb75dd94efc2c3c94
parent6651b65373cb8106e90c083fc1643eb5882faac2 (diff)
Remove timing for llvm-opt
-rw-r--r--build.bat5
-rw-r--r--examples/demo.odin8
-rw-r--r--src/main.cpp2
3 files changed, 11 insertions, 4 deletions
diff --git a/build.bat b/build.bat
index ea9952610..1d0503868 100644
--- a/build.bat
+++ b/build.bat
@@ -41,9 +41,12 @@ set linker_settings=%libs% %linker_flags%
del *.pdb > NUL 2> NUL
del *.ilk > NUL 2> NUL
+rem odin run examples/node-lang/node-lang.odin && goto end_of_build
+
+
cl %compiler_settings% "src\main.cpp" ^
/link %linker_settings% -OUT:%exe_name% ^
- && odin run examples/demo.odin -opt=0
+ && odin build examples/demo.odin -show-timings
rem && odin docs core/fmt.odin
del *.obj > NUL 2> NUL
diff --git a/examples/demo.odin b/examples/demo.odin
index 617d289eb..60b981a71 100644
--- a/examples/demo.odin
+++ b/examples/demo.odin
@@ -665,15 +665,19 @@ named_proc_parameters :: proc() {
}
main :: proc() {
+ Foo :: union {
+
+ }
+
+ when false {
general_stuff();
default_struct_values();
- when false {
union_type();
parametric_polymorphism();
threading_example();
array_programming();
- }
using_in();
named_proc_parameters();
+ }
}
diff --git a/src/main.cpp b/src/main.cpp
index cee9d774a..512a67f14 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -711,7 +711,6 @@ int main(int arg_count, char **arg_ptr) {
timings_start_section(&timings, str_lit("llvm ir print"));
print_llvm_ir(&ir_gen);
- timings_start_section(&timings, str_lit("llvm-opt"));
String output_name = ir_gen.output_name;
String output_base = ir_gen.output_base;
@@ -720,6 +719,7 @@ int main(int arg_count, char **arg_ptr) {
i32 exit_code = 0;
+ // timings_start_section(&timings, str_lit("llvm-opt"));
// #if defined(GB_SYSTEM_WINDOWS)
// // For more passes arguments: http://llvm.org/docs/Passes.html
// exit_code = system_exec_command_line_app("llvm-opt", false,