Christoffer Lerno
a7309b217e
Add --print-large-functions for checking which functions likely dominate the compile time.
2026-02-16 00:13:19 +01:00
Christoffer Lerno
d80a8629a6
- On assert known false, the message was not show for no-args.
...
- Fixup in socket_private.c3
2026-02-14 23:49:27 +01:00
Christoffer Lerno
14779bd467
Set CP_UTF8 to underlying number.
2026-02-14 01:49:03 +01:00
Christoffer Lerno
eb80776988
More fixes for typedef @constinit change
2026-02-14 01:37:53 +01:00
Samuel
fac9054f1b
Fix array initializer analysis ( #2925 )
...
* Fix array initializer analysis: improved semantic checking for arrays with inferred or fixed length,
* Update phrasing
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-02-13 23:38:07 +01:00
Christoffer Lerno
e299a4b630
- Change typedef and const enums to not convert from literals by default. ( #2934 )
...
- Add `@constinit` to allow old typedef behaviour.
2026-02-13 20:39:47 +01:00
Christoffer Lerno
bbf89815d6
- Individual warning settings added.
2026-02-13 18:25:19 +01:00
Christoffer Lerno
cc6d552e3d
- --safe=no disabled compile-time errors on compile-time known runtime @require checks #2936
2026-02-13 16:34:45 +01:00
Christoffer Lerno
27ceded331
Add a few const char*
2026-02-12 16:51:34 +01:00
Christoffer Lerno
3f279b2f1c
Refactoring: make CT_IDENT and unresolved expression.
2026-02-12 16:38:18 +01:00
Christoffer Lerno
acc4a900f5
- New const enum declaration syntax.
...
- New enum associated value syntax.
2026-02-12 14:43:56 +01:00
Christoffer Lerno
83705ab340
Fix chacha20.
2026-02-11 23:44:26 +01:00
Christoffer Lerno
9b52be9ba6
- unsigned % signed and unsigned / signed is no longer allowed without explicit casts, except for const denominators. #2928
2026-02-11 23:18:08 +01:00
Christoffer Lerno
202349d88f
- Improved underlining errors/warnings when unicode is used. #2887
2026-02-11 16:49:22 +01:00
Christoffer Lerno
2237d3b836
Missing check
2026-02-11 02:55:07 +01:00
Christoffer Lerno
e2f17a770b
Using [] or .foo on $$ functions would not raise error but instead crash #2919 .
2026-02-11 02:53:17 +01:00
g.denis
a80e40a798
fix fedora dyn lib ( #2917 )
...
* also look into /usr/lib64
2026-02-10 23:12:04 +01:00
Manuel Barrio Linares
de8a733c77
Implement lazy-loaded libcurl
...
- Uses `dlopen` to load libcurl at runtime for better portability.
- Replaces the FETCH_AVAILABLE macro with download_available() check.
- Provides descriptive error messages when libcurl is missing.
2026-02-10 13:05:43 +01:00
Christoffer Lerno
dcbd0f8f2d
Fix dwarf definitions
2026-02-10 10:23:53 +01:00
Christoffer Lerno
67e224c62f
Fix windows main
2026-02-09 10:15:49 +01:00
Christoffer Lerno
80ad0e02ad
Fix tests and error in returning error on function name.
2026-02-08 22:54:24 +01:00
Lucas Alves
b8ee5a4150
fix: add non-API Android NDK lib search path ( #2884 )
...
* fix: add sysroot/usr/lib/<triple> to Android linker search paths
* Fix library search order: move libc++_shared logic after API libc paths
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-02-08 15:02:37 +01:00
Christoffer Lerno
445dd155b7
Another #2814
2026-02-08 15:01:27 +01:00
Christoffer Lerno
de0b317461
Fix default main template.
2026-02-08 13:38:43 +01:00
Christoffer Lerno
21758476d4
- For c3c init with library templates, provide example exported functions. #2898
2026-02-07 21:31:12 +01:00
Christoffer Lerno
b69f78be30
Flag --cpu-flags doesn't work if the first item is an exclusion. #2905
2026-02-07 21:21:57 +01:00
Christoffer Lerno
02a67254cc
Fix win forwarding functions.
2026-02-07 19:57:43 +01:00
Manuel Barrio Linares
120f56ac5f
disable --fetch-msvc when no curl
2026-02-07 01:22:54 +01:00
Manuel Barrio Linares
36dfbdff45
implement progress bar for fetch-msvc
...
using deterministic milestones
2026-02-06 17:59:36 +01:00
Christoffer Lerno
d07e454dfe
Fix missing )
2026-02-06 17:56:40 +01:00
Manu Linares
0be291e0d7
compiler: added c3c fetch-msvc command ( #2854 )
...
* compiler: added `c3c fetch-msvc` command
ported `msvc_build_libraries.py` to built-in compiler 'fetch-msvc'
subcommand.
* fix alpine build
* fix windows build
* fix WinHTTP download to correctly handle full URLs by splitting hostname and path.
* fix old `cp` and escape args for `file_copy_file`
also cleanup the temp directory when we are finished
it would be better to use a cache :|
* remove msiextract dependency
* Auto-fetch `msvc_sdk` if missing
- auto trigger `msvc_sdk` download when compiling for Windows if no SDK
is detected.
- make native Windows SDK detection non-fatal to allow fallback to the
portable SDK
- add debug logging for diagnostics
* removed the LZX decompression logic
- moved `msvc_sdk` to user cache locations to avoid permission issues.
- refined terminal messaging for better accuracy and clarity.
* use %LOCALAPPDATA% on Windows
* Add support for C3_MSVC_SDK
* Update release notes.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-02-06 14:01:49 +01:00
Christoffer Lerno
124efb2684
Improve error message on const int*
2026-02-06 02:00:26 +01:00
Christoffer Lerno
5c158e481b
Always have wmain. Cleanup synthetic main generation. Some cleanup for generics.
2026-02-06 01:28:19 +01:00
Christoffer Lerno
42b79d19c1
Update all stub methods.
2026-02-06 00:55:57 +01:00
Foxy-Boxes
1933d47ba1
add Intel user interrupt instructions ( #2767 )
...
* add Intel user interrupt instructions
* Example code did not actually work, so was removed.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-02-05 20:56:35 +01:00
Book-reader
bb9e9b54cf
Improve android support & add CI ( #2664 )
...
* Change context destruction order.
* enable emulated tls on termux
* Fix stdlib on android
* Add a CI workflow for android termux
* update release notes
* use the new unified CI tests on android
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-02-05 20:04:16 +01:00
Christoffer Lerno
2c55d6e220
Further fix shadowing of generics
2026-02-05 18:43:54 +01:00
Christoffer Lerno
472c49de25
Differentiate errors on generic mismatch.
2026-02-05 16:20:17 +01:00
Christoffer Lerno
016254d38c
Improve error message when using functions as values #2856
2026-02-05 16:03:56 +01:00
Christoffer Lerno
054fcd2deb
Update advice when an enum is found with "= 2" and no associated values.
2026-02-05 13:57:35 +01:00
Christoffer Lerno
d71aa10f62
- Const inline enums would not always implicitly get converted to the underlying type.
...
- Update to dstring.append_string to take any type converting to String.
2026-02-05 13:04:57 +01:00
Christoffer Lerno
71b673d241
- Shadowing not detected for generic declarations #2876
2026-02-05 01:33:47 +01:00
Christoffer Lerno
dcf695c726
Fix list[0].i = 5 when list[0] returns a pointer. #2888
2026-02-05 00:34:17 +01:00
Christoffer Lerno
5f32c97094
- Compiler crash when using arrays of vectors in lists. #2889
2026-02-04 12:40:16 +01:00
Christoffer Lerno
1c8cb7fa11
Method resolution and $define now works together well unless definitions are out of order for real.
2026-02-04 12:23:37 +01:00
Christoffer Lerno
6bc606a9b1
Removed analyse top pass. Remove sub module tracking. Fix errors where ? should be ~
2026-02-02 12:20:34 +01:00
Zack Puhl
12975d07ac
[stdlib] Reduce inline code volume from sorting macros ( #2831 )
...
* reduce codegen in sorting macros
* remove testing file...
* Fix and some renaming, removing some sub-modules that should not be in use.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-01-31 20:19:57 +01:00
Laura Kirsch
3d512abaf7
Fix non-LLVM build.
2026-01-31 14:07:48 +01:00
Kiana
a9d93c93d5
Improve linker error message ( #2880 )
...
* Improve linker error message
* use file_util/file_is_dir instead
* cleanup unused function
* Some minor updates and merging latest master.
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2026-01-31 04:55:47 +01:00
Christoffer Lerno
10d369d766
Updated grammar, and 0.7.10 first commit
2026-01-30 21:59:20 +01:00