Commit Graph

4855 Commits

Author SHA1 Message Date
gingerBill
952fb998e6 Check for CURR_DATE_TIME 2024-07-09 14:20:55 +01:00
gingerBill
886ee66e7f Cache files, env, and args 2024-07-09 14:16:56 +01:00
gingerBill
68b70a2183 Check for bounds check error 2024-07-09 13:35:52 +01:00
gingerBill
ccdad8b8dd Add odin clear-cache 2024-07-09 13:31:54 +01:00
gingerBill
45bf180847 Add subtarget to cached executable 2024-07-08 23:55:01 +01:00
gingerBill
87ac68fcf2 Add -internal-cached 2024-07-08 23:39:14 +01:00
gingerBill
48aef50164 Add #load cache files to -export-dependencies:json 2024-07-08 17:46:10 +01:00
gingerBill
564d5af8b2 Default to -o:none for all builds 2024-07-08 16:12:22 +01:00
gingerBill
2c9ef6907a Clean up timings messages showing used module count 2024-07-08 15:30:33 +01:00
gingerBill
2a219fa830 Correct -use-separate-module behaviour 2024-07-08 15:13:40 +01:00
gingerBill
8491e2491c Experiment with different uses of -use-separate-modules 2024-07-08 14:48:59 +01:00
gingerBill
7dd4cccce7 Use a temporary directory for -use-separate-modules
Windows only currently
2024-07-08 14:21:07 +01:00
gingerBill
0f664893dd Add sort for global types and procedures 2024-07-08 13:59:25 +01:00
gingerBill
930a147f24 Update to LLVM 18.1.8 2024-07-08 13:08:18 +01:00
gingerBill
86c58167ed Add -print-linker-flags 2024-07-08 10:40:04 +01:00
Feoramund
77d64a5461 Forbid $T= parameter from crashing compiler
Fixes #3883
2024-07-06 15:32:17 -04:00
gingerBill
88c9512d5f Merge pull request #3828 from laytan/re-raise-signals-from-odin-run
re-raise signals from the `odin run` binary
2024-07-06 18:55:37 +01:00
Jeroen van Rijn
c8432df248 Merge pull request #3874 from laytan/fix-not-detecting-duplicate-proc-case
Fix not detecting duplicate proc cases
2024-07-05 01:00:14 +02:00
Laytan Laats
f66b7021a6 Fix not detecting duplicate proc cases
Fixes #3864
2024-07-05 00:50:52 +02:00
Laytan Laats
1bd9fe04c4 Fix assertion false positive
Assertion was added in #3855 - 7233149096
to mimic LLVM's own internal assertion for this, turns out their
assertion is more sophisticated than an `==` so lets just remove it.

To be clear their internal assertion is not hit while this one is, which
defeats the purpose of ours.
2024-07-04 23:55:21 +02:00
gingerBill
1eb0bc1408 Remove *_test.odin; always compile it for all targets 2024-07-04 14:43:57 +01:00
gingerBill
8b7c6a23ba Restrict a bit more 2024-07-04 14:06:02 +01:00
gingerBill
bf711b282d Remove when check in check_entity_from_ident_or_selector 2024-07-04 13:58:36 +01:00
gingerBill
87bccc8f3f Remove import name cases 2024-07-04 13:53:52 +01:00
gingerBill
657bc88535 Allow x :: y when cond else proc(...){...} 2024-07-04 13:48:52 +01:00
gingerBill
d78ff0be52 Fix lb_store_type_case_implicit 2024-07-04 13:20:36 +01:00
gingerBill
52c219690a Ff @(disabled=true), do not add that entity's dependencies to the set 2024-07-04 13:09:31 +01:00
Karl Zylinski
782286357b error on type_of(value of untyped type) 2024-07-03 22:21:32 +02:00
Jeroen van Rijn
f6892d2236 Fix help text. 2024-07-03 19:30:25 +02:00
gingerBill
075384b2bb Fix #soa assignment bug 2024-07-03 00:33:13 +01:00
gingerBill
7e6acdf800 Merge pull request #3855 from laytan/master
Fix two LLVM assertion failures
2024-07-02 22:16:49 +01:00
gingerBill
8b49549fd3 Merge pull request #3859 from laytan/wasm-stbtt-object-linking-preopens
wasm: support `vendor:stb/truetype` and `vendor:fontstash`
2024-07-02 22:14:54 +01:00
Laytan Laats
6f1cc8071c wasm: add foreign import and linking of wasm object files 2024-07-02 15:28:08 +02:00
Laytan Laats
7233149096 fix llvm assertion failure when const initializer is not the same type 2024-07-02 01:25:52 +02:00
Laytan Laats
c822f0b8c8 fix llvm assertion about metadata on non-instruction 2024-07-02 01:14:50 +02:00
Jeroen van Rijn
f7243eac74 Force cl.exe to parse Odin source as utf-8. 2024-07-01 20:48:00 +02:00
Jeroen van Rijn
c2ab2bf25a Add UTF-8 BOM for ucg.c, because reasons. 2024-07-01 20:23:48 +02:00
gingerBill
a2b23de0a7 Sanity check for a nullptr 2024-07-01 12:24:46 +01:00
gingerBill
42ff711114 Fix #3515 2024-07-01 12:22:18 +01:00
gingerBill
544959326b Add intrinsics.type_struct_has_implicit_padding #3844 2024-07-01 12:13:35 +01:00
gingerBill
4086a62167 Fix showing error when not meant to 2024-07-01 11:50:35 +01:00
gingerBill
11617af8f5 Add support for make(#soa[]T) etc 2024-07-01 11:34:50 +01:00
gingerBill
fb0b95bcad Merge pull request #3760 from Feoramund/refactor-show-error-on-line
Refactor `show_error_on_line`
2024-07-01 11:03:29 +01:00
gingerBill
1a4edad63e Merge pull request #3848 from laytan/wasm-c-abi-indirect-multifield-struct
make structs with multiple fields always return indirect in wasm c abi
2024-07-01 11:02:49 +01:00
Laytan Laats
ef6a73c7ef fix not setting cc before using it in abi computations 2024-07-01 01:30:44 +02:00
Laytan Laats
e3dde8caf8 make structs with multiple fields always return indirect in wasm c abi 2024-07-01 00:50:10 +02:00
Jeroen van Rijn
efd933e221 Merge pull request #3842 from karl-zylinski/fix-poly-bitset-size
Fix for bit_set[$T] proc params always being generated as i8
2024-06-30 21:10:42 +02:00
Karl Zylinski
e0face1ac8 Make types like bit_set[$T] have their upper and lower bits overwritten by upper/lower from the source types when checking if polymorphic type is assignable. This fixes an issue where an i8 was always generated for bit_sets with generic elements, because it couldn't figure out upper/lower when check_bit_set_type was run. Fixes #2860 2024-06-30 20:36:51 +02:00
Feoramund
8ed5cb283b Re-implement the error squiggles with visual width 2024-06-29 18:55:12 -04:00
Feoramund
8b305a4c67 Add UCG library to Odin compiler 2024-06-29 18:42:56 -04:00