Commit Graph

5638 Commits

Author SHA1 Message Date
Harold Brenes
efe4f40974 Fix @objc_implement methods not respecting @objc_is_class_method
Fix incorrect type encoding for objc_class
2025-07-15 23:47:13 -04:00
Laytan
204edd0fc2 Merge pull request #5459 from harold-b/hb.simplify-import-odin-ext-folders-check
Use `fi.is_dir` instead of `path_is_directory()` during directory check when collecting .odin files
2025-07-14 21:59:05 +02:00
Harold Brenes
77e5c71414 Fix correct versioned target triplet for iphonesimulator subtarget
- Always set the `-m*-version-min` linker flag for non-macOS Darwin subtargets
2025-07-14 14:28:07 -04:00
Harold Brenes
070943aa98 Provide default minimum version for iOS and apply its target triplet.
- Fix incorrect clang_path override for iOS during link stage.
2025-07-14 12:59:25 -04:00
gingerBill
362c146f9d Merge pull request #5462 from harold-b/hb.ios-support-2025
Add iOS & iPhoneSimulator subtargets for Darwin target
2025-07-14 16:50:57 +01:00
Harold Brenes
4d2d890b4c Fix accidental incorrect assignment 2025-07-13 20:29:54 -04:00
Harold Brenes
0e245fb40f Updated iOS/iPhoneSimulator build support 2025-07-13 20:17:30 -04:00
Harold Brenes
9a87611609 Fix leftover poor indentation for objc_ivars MPSCQueue 2025-07-13 15:39:41 -04:00
Harold Brenes
b811414ed1 Use fi.is_dir instead of path_is_directory() when checking if an import is a directory with a .odin extension. 2025-07-13 15:24:53 -04:00
gingerBill
843c39189e Merge pull request #5455 from FourteenBrush/master
Add `type_enum_is_contiguous` intrinsic (Closes #5395)
2025-07-12 23:19:33 +01:00
FourteenBrush
980370a24b Add union kind assertion to enum_constant_entity_cmp 2025-07-11 21:23:21 +02:00
FourteenBrush
2dd0b75289 Fix BigInt leaking 2025-07-11 21:07:28 +02:00
gingerBill
38faec757d Correct consume comment groups in both parsers 2025-07-11 18:41:40 +01:00
FourteenBrush
64bb0d1c7d Allocate temp array instead of sorting in place 2025-07-11 19:38:01 +02:00
FourteenBrush
8cbf75c928 Add type_enum_is_contiguous intrinsic 2025-07-11 17:03:49 +02:00
Jeroen van Rijn
e735e036b4 Fix #5447
Thanks to @FourteenBrush
2025-07-09 23:55:57 +02:00
Jeroen van Rijn
090cac62f9 lb_const_string -> lb_const_value 2025-07-07 20:47:49 +02:00
Jeroen van Rijn
1a4139b25c Remove old flag from help 2025-07-01 21:13:19 +02:00
Hayden Gray
f72b2b1530 [source-code-locations] - added options to show, obfuscate, and hide source code locations (#5412) 2025-06-26 22:43:44 +02:00
Laytan Laats
2c308bdcfa fix load type panic because front-end allows a deref of a type
Fixes #5357
2025-06-26 17:07:06 +02:00
Jeroen van Rijn
1fbc5641c0 Add to tests/internal
Turn repro code into a proper test, and delete superfluous files from Odin root.
2025-06-26 14:47:38 +02:00
Tohei Ichikawa
8410871cb8 Fix bug where compiler treats uint enums as ints 2025-06-24 22:58:00 -04:00
Airtz
fb3bccdd3e Fix an oversight for operators with more than 2 chars 2025-06-24 16:09:42 +02:00
Airtz
2259db9a53 Better error messages 2025-06-24 02:54:14 +02:00
Jeroen van Rijn
8707989e57 Merge pull request #5389 from Airtz/fix-4445
Fix #4445
2025-06-23 19:14:00 +02:00
Airtz
d65b1d5e94 Better proc groups inference 2025-06-23 18:10:40 +02:00
Feoramund
3608297e0b Forbid nested declaration of instrumentation procedures
Fixes #3774
2025-06-23 09:11:16 -04:00
Feoramund
d343f54d6d Fix spurious failure to compile procedures marked @instrumentation_enter
The type `Source_Code_Location` may not be available yet, which causes
the compiler to not recognize the procedure type correctly.
2025-06-23 09:03:50 -04:00
Airtz
38187ef206 Merge branch 'odin-lang:master' into fix-4445 2025-06-22 17:05:32 +02:00
Jeroen van Rijn
56d9671f63 Merge pull request #5368 from Airtz/master
Fix #5331 and `check_shift` improvements
2025-06-22 16:58:21 +02:00
Airtz
277130111e sign check error message update 2025-06-22 16:51:44 +02:00
Airtz
19c0f43e19 Fix #4445 2025-06-22 16:15:22 +02:00
gingerBill
8d37f9de09 Merge pull request #5378 from laytan/fix-wasm-c-abi-raw-unions
Fix WASM C ABI for raw unions
2025-06-21 11:01:52 +01:00
Jeroen van Rijn
8dc374a6ae Merge pull request #5380 from Feoramund/fix-2410
Ensure `volatile` status for all atomic operations
2025-06-21 01:55:04 +02:00
Feoramund
5b1113acb4 Ensure volatile status for all atomic operations
Fixes #2410
2025-06-20 19:43:41 -04:00
Jeroen van Rijn
7abd86c211 Clarify --- for global variable. 2025-06-21 00:05:15 +02:00
Laytan
62c5805c91 Merge pull request #5150 from wishfoundry/patch-1
spelling in compilation errors
2025-06-20 22:37:03 +02:00
Laytan
2995557394 Merge pull request #5211 from Barinzaya/union-custom-align-tag-size
Consider custom `#align` when determining union tag size
2025-06-20 22:31:31 +02:00
Feoramund
378e72b211 Push context onto stack before evaluating procedure parameters
Fixes #4711
2025-06-20 16:11:08 -04:00
Laytan Laats
3db8972c99 add return 2025-06-20 22:07:46 +02:00
Laytan Laats
3a86bc9c6d Fix WASM C ABI for raw unions 2025-06-20 22:04:53 +02:00
xenobas
0ed54d3557 fix: escape object files with single quotes during linking 2025-06-20 19:40:24 +01:00
Airtz
7c5b5618e8 check_is_expressible instead of convert_to_typed when there is no type_hint 2025-06-20 04:49:39 +02:00
Airtz
c7c5258c58 Update check_expr.cpp 2025-06-20 01:23:40 +02:00
Jeroen van Rijn
29d9a12491 Add check_all scripts 2025-06-16 22:26:24 +02:00
Airtz
fe7fbfedc0 Fix typo in error_article_table lookup 2025-06-16 12:22:03 +02:00
Jeroen van Rijn
cc08dca53d Add additional nullptr checks in types.cpp
Ran into a bunch of nullptr problems while reviving an 8-year old Odin problem.
2025-06-14 01:13:36 +02:00
Laytan Laats
144daf6fff add macOS Tahoe to odin report and core:sys/info 2025-06-14 00:27:37 +02:00
gingerBill
2a292b588a Merge pull request #5305 from Feoramund/fix-4362
Guard against invalid proc types in parameter list
2025-06-10 17:15:13 +01:00
Feoramund
1fc390146f Let -no-entry-point work for Windows DLLs
Fixes #4660
2025-06-10 08:54:28 -04:00