Guillaume M.
bf74ef0e5e
Fix crt detection for Arch Linux ( #1705 )
...
* Fix crt detection for arch linux
On archlinux, the crt is located directly in /usr/lib. Thus, the globbing done in find_linux_crt fails since it expects the crt to be in a subdirectory of /usr/lib. This patch fixes this issue.
2024-12-23 20:03:53 +01:00
Christoffer Lerno
0ff52311c3
- Fix problem where crt1 was linked for dynamic libraries on Linux and BSD. #1710
2024-12-23 20:02:17 +01:00
Christoffer Lerno
e453e6f9ca
- Add enum.from_ordinal and fault.from_ordinal
...
- Deprecate cast-style conversion from integer to enum.
- Make deprecation an error in test mode.
2024-12-23 15:27:59 +01:00
Christoffer Lerno
6078598aff
- static-lib and dynamic-lib options from the command line now produces headers.
...
- Fix bug outputting exported functions without predefined extname.
- Removed 'headers' command line option.
2024-12-22 11:49:11 +01:00
Christoffer Lerno
1362aa655f
Split help into normal and "full" help, #1703
2024-12-21 16:08:07 +01:00
Christoffer Lerno
627f10cd18
Fix bug when a macro calling an extern function was called in another module also declaring and calling the same function. #1690
2024-12-19 20:39:23 +01:00
Christoffer Lerno
4ae3d0150f
Fix case trying to initialize a char[*]* from a String.
2024-12-15 20:42:42 +01:00
Christoffer Lerno
7d153a162a
Prepare 0.6.6
2024-12-14 23:06:08 +01:00
Christoffer Lerno
7bc3e94ff3
Build 0.6.5 release. Fixed.
2024-12-14 17:38:02 +01:00
Christoffer Lerno
9c1fb26660
Build 0.6.5 release.
2024-12-14 17:33:00 +01:00
Christoffer Lerno
3dd725a0f0
Crash when a constant null typeid is checked for properties. #1679
2024-12-14 15:13:43 +01:00
Christoffer Lerno
a8aad53038
It was possible to create 0 length arrays using byte literals. #1678
2024-12-14 02:49:45 +01:00
Christoffer Lerno
723e1dd9a6
Fix issue with overloaded *= etc
2024-12-11 20:56:11 +01:00
Christoffer Lerno
061c02306f
Cast removing arbitrary array indices and converting them to pointers should always be fine #1664
2024-12-08 18:58:43 +01:00
Christoffer Lerno
f006b05010
Fix issue with accessing arrays in access-overloaded types, e.g. list[1][2] #1665 .
2024-12-08 18:04:29 +01:00
Christoffer Lerno
ea86c9d37a
Fix of issue where multiple methods were accepted for the same type. Fix of issue where a method was linked to a type alias instead of the underlying type. #1661
2024-12-06 13:09:47 +01:00
Christoffer Lerno
d1a2e6e5bd
Update Windows debug output.
2024-12-06 02:18:36 +01:00
Christoffer Lerno
b7010c83e0
Fix windows emit loc.
2024-12-04 21:33:03 +01:00
Christoffer Lerno
0ded93ab9b
Do not produce expression locations for windows.
2024-12-04 12:21:12 +01:00
Christoffer Lerno
6281f8ff89
Add -q option, make --run-once implicitly -q.
...
Add `-v`, `-vv` and `-vvv` options for increasing verbosity, replacing debug-log and debug-stats options. #1601
2024-12-03 23:37:31 +01:00
Christoffer Lerno
8569239bc1
Crash when using --no-obj without compile-only. #1653
2024-12-03 19:48:24 +01:00
Nexus
7381734913
fix: prevent infinite read-loop by updating left_to_read after write ( #1652 )
...
* fix not updated `left_to_read` after the buffer has been written
2024-12-02 14:34:57 +01:00
Christoffer Lerno
462322026f
Fix bug with missing target in test and crash in benchmark. Note that this doesn't resolve the issues with these yet.
2024-11-30 20:26:04 +01:00
Christoffer Lerno
b5e5c719ed
Enforce single module compilation for static libraries to make constructors run properly.
2024-11-30 15:34:54 +01:00
Christoffer Lerno
5fc6672784
Crash compiling for arm64 when returning 16 byte and smaller structs by value not a power of 2 #1649 .
2024-11-30 11:47:49 +01:00
Christoffer Lerno
8099e7a75d
Update LLVM debug info.
2024-11-28 21:59:20 +01:00
Christoffer Lerno
cc9a501351
Fix bug preventing optionals from being used in ranges or as indices.
2024-11-28 00:48:58 +01:00
Christoffer Lerno
f13472a8c3
Contracts on generic modules would evaluate too late, sometimes not catching the error until it already occurred elsewhere. Add file::save.
2024-11-27 00:02:43 +01:00
Christoffer Lerno
a087ba608b
Begin unifying baseXX encodings. b64 / hex data strings can now be used with \` as well.
2024-11-25 16:20:10 +01:00
Nexus
c273f26cb3
Add "sources" option support for library. ( #1631 )
...
* Add "sources" support for library manifest
* Add "sources" to library manifest creation
* Add "sources" key to target manifest
* Added fallback for already made libraries
* Remove src/ in library creation
* add changes to releasenotes.md
2024-11-24 15:37:15 +01:00
Christoffer Lerno
b2724caeda
Begin work on asm label support.
2024-11-23 17:10:42 +01:00
Christoffer Lerno
652456646f
Prevent methods from using names of properties or fields. #1638
2024-11-22 16:40:33 +01:00
Christoffer Lerno
ca0dc49f64
Improve support for Windows cross compilation on targets with case sensitive file systems.
2024-11-21 23:28:58 +01:00
Christoffer Lerno
ae1b39eb60
Not possible to alias or take reference for extension methods on non-user defined types. #1637
2024-11-21 14:48:13 +01:00
Christoffer Lerno
347a1a48d4
Indexing an Optional slice would crash in codegen #1636 .
2024-11-21 11:30:53 +01:00
Christoffer Lerno
c9793457f3
Fix issue with properties in different targets not being respected. #1633
2024-11-21 01:24:44 +01:00
Christoffer Lerno
50d31ba398
Fix issue with overloaded subscript and ++/--.
2024-11-20 23:44:42 +01:00
Sander van den Bosch
2788c4cc00
Add new AMX and other feature flags
2024-11-20 23:43:30 +01:00
Christoffer Lerno
ba54232b8d
Fix issue with overloaded subscript and ++/--.
2024-11-20 00:23:08 +01:00
Christoffer Lerno
dd06dfa5ba
Fix issue with resolved try-unwrap in defer.
2024-11-18 15:53:27 +01:00
Christoffer Lerno
295b374b48
Support &a[0] returning the distinct type when applying it to a distinct of a pointer.
2024-11-17 22:25:57 +01:00
Christoffer Lerno
8ed390c394
A distinct inline pointer type can now participate in pointer arithmetics.
2024-11-16 23:08:54 +01:00
Christoffer Lerno
f9e9cac6e8
Cleanup and better contract error messages.
2024-11-16 00:02:03 +01:00
Christoffer Lerno
f88c0dd645
Tweak the error message on unexpectedly getting a non-type identifier. #1622
2024-11-14 00:19:17 +01:00
Christoffer Lerno
7b516e6113
@builtin was not respected for generic modules #1617 .
2024-11-13 23:34:34 +01:00
Matteo Cardinaletti
61a76bb834
Init command will now add test-sources to project.json #1520
2024-11-12 15:17:09 +01:00
Christoffer Lerno
a228eb020d
Allow splat in initializers.
2024-11-11 23:54:35 +01:00
Christoffer Lerno
c46933a81a
Refactor "splat" parsing.
2024-11-11 15:43:17 +01:00
Christoffer Lerno
746046c8c0
Fix bug where a > 0 ? f() : g() could cause a compiler crash if both returned void!.
2024-11-10 01:18:56 +01:00
Christoffer Lerno
acab95792f
Improve error message when incorrectly using Type as an rvalue.
2024-11-10 01:18:56 +01:00