Christoffer Lerno
a2ef63f5b6
Error if a stack allocated variable is too big (configurable with --max-stack-object-size).
2025-08-21 00:33:56 +02:00
Christoffer Lerno
7c8e3dd4fd
Fix max module name to 31 chars and the entire module path to 63 characters.
2025-08-18 12:02:00 +02:00
Zack Puhl
eb8fb8871f
Fix $$str_hash to use a5hash like String.hash() ( #2403 )
...
* Fix `$$str_hash` to use `a5hash` like `String.hash()`
2025-08-14 20:24:01 +02:00
Christoffer Lerno
c31c423386
Reduce allocated Vmem for the compiler on 32 bit machines.
2025-08-03 22:58:51 +02:00
Zack Puhl
2639338426
Support full paths with $embed ( #2335 )
...
* Support full paths with `$embed`
---------
Co-authored-by: Christoffer Lerno <christoffer@aegik.com >
2025-07-28 23:44:17 +02:00
Christoffer Lerno
208b0f6d0e
Fix issue where recursively creating a dir would be incorrectly marked as a failure the first time.
...
Place output in `out` by default for projects. Use temp folder for building at the command line.
2025-07-28 00:19:12 +02:00
LowByteFox
1218afd51f
Add ability to compile on OpenBSD ( #2310 )
...
* fix curl in cmake, make c3c compile on OpenBSD, fix typo in OS_TYPE_FREEBSD
2025-07-19 21:09:39 +02:00
Christoffer Lerno
adb3df05c6
Allow even smaller memory limits.
2025-07-18 10:54:03 +02:00
Christoffer Lerno
da4105ffb1
Whereami fix
2025-07-16 22:34:14 +02:00
Christoffer Lerno
5c5692ae98
Dev ( #2307 )
...
* Refactor whereami
2025-07-16 15:56:36 +02:00
Christoffer Lerno
379d16abe7
Some refactoring of ranges. env::AUTHORS and env::AUTHOR_EMAILS
2025-07-16 12:23:24 +02:00
Christoffer Lerno
b19cd0b87d
Casting a fault to a pointer would trigger an assert.
2025-07-05 01:38:44 +02:00
Christoffer Lerno
fa50268b4e
Update max memory.
2025-07-04 17:46:02 +02:00
Christoffer Lerno
ae1d51d089
--max-mem now works correctly again.
2025-07-04 17:06:52 +02:00
Christoffer Lerno
014f734260
Remove unused code.
2025-07-04 02:26:01 +02:00
Christoffer Lerno
63abf1c2f8
- Compiler null pointer when building a static-lib with -o somedir/... #2246
2025-06-27 15:46:17 +02:00
Christoffer Lerno
9645bd3289
- $typefrom now also accepts a constant string, and so works like $evaltype.
...
- `$evaltype` is deprecated in favour of `$typefrom`.
2025-06-03 14:51:56 +02:00
Christoffer Lerno
b5ddc36d7f
Limit vector max size, default is 4096 bits, but may be increased using --max-vector-size.
2025-05-23 21:40:14 +02:00
Christoffer Lerno
49033320e2
Stable path for unpacked libraries.
2025-03-20 20:51:36 +01:00
Christoffer Lerno
8c23c5028d
Make @public import recursive. #2018
...
`import` can now both be @public and @norecurse.
2025-03-10 15:33:29 +01:00
Christoffer Lerno
5898cad98d
Fix typo giving the wrong mem on error, closes #2023 .
2025-03-07 12:14:01 +01:00
Christoffer Lerno
96943ca66f
Check exe and lib output so -o works with directories. Removed construct forms from Maybe.
2025-02-26 02:35:28 +01:00
Christoffer Lerno
855be92881
Regression with .gitkeep in project init. List.init incorrectly didn't have the first argument the allocator. Added .init to priority queue. Created mem thread allocator alias. Correctly handle ident aliases. Allow ident on builtin aliases.
2025-02-21 21:34:48 +01:00
Christoffer Lerno
b54d994475
Fix memcmp misuse in parsing asm args.
2025-02-21 09:46:56 +01:00
Christoffer Lerno
7dd9256e2d
Update temp path append function.
2025-01-30 23:20:38 +01:00
Christoffer Lerno
0bad8f92b0
More conservative use of getcwd and some cleanup.
2025-01-30 18:13:12 +01:00
Christoffer Lerno
13771cc536
Truncate output from execute and print to stdout on error.
2025-01-29 13:51:33 +01:00
Christoffer Lerno
a845a932f5
Change _MSC_VER to PLATFORM_WINDOWS for some exec. Fix to nix.
2025-01-22 00:44:50 +01:00
Christoffer Lerno
3221180315
Fixes to `"exec" use.
2025-01-22 00:26:40 +01:00
Christoffer Lerno
772b20c26b
Fix find_msvc
2025-01-21 01:26:55 +01:00
Christoffer Lerno
fefe6d1342
Filter $exec output from \r, which otherwise would cause a compiler assert #1867 .
2025-01-20 22:32:53 +01:00
Christoffer Lerno
f863c4ae84
Fix incorrect arg type failing MSVC compilation. Missing ASSERT updated. Update python script. Fix bug printing error duplicate generic module.
2025-01-20 03:35:49 +01:00
Christoffer Lerno
bb2a2526e4
Refactoring access + some macro renaming.
2025-01-20 02:44:39 +01:00
Christoffer Lerno
e133f4406a
Extend embedded files to zero terminate.
2025-01-10 19:25:53 +01:00
pekochan069
2fa258a066
Change vswhere command to find to find msvc toolchain correctly
2025-01-10 15:46:16 +01:00
Christoffer Lerno
0d1fb2843e
Improve the error message when running out of memory.
2025-01-10 00:29:08 +01:00
KillerxDBr
fe7d4230d8
Fix 'clean' command on Windows MinGW
...
'c3c clean' command try to use 'rm' on Windows MinGW compiled executable, since it does not define "_MSC_VER", but define "_WIN32"
There are other uses of "_MSC_VER" in the same file, they probably can be changed to "_WIN32" too
2025-01-05 16:19:12 +01:00
Christoffer Lerno
1994cba73e
Fix default #foo args.
2025-01-02 15:23:21 +01:00
Christoffer Lerno
7424317d03
Fix call to copy.
2024-12-25 00:16:35 +01:00
Christoffer Lerno
dbf1d91961
Add --win-vs-dirs to override VS detection dirs.
2024-12-25 00:07:57 +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
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
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
f9e9cac6e8
Cleanup and better contract error messages.
2024-11-16 00:02:03 +01:00
Christoffer Lerno
b882265e52
Start work on 0.6.5
2024-11-10 01:18:56 +01:00
Christoffer Lerno
071bd0ebf2
Fix bug when reading zip manifest, that would not return a zero terminated string. #1490
2024-09-29 21:14:03 +02:00
Christoffer Lerno
885acdac24
Support compile time slicing of untyped lists.
2024-09-21 20:20:56 +02:00
Christoffer Lerno
c25645eab1
Add .gitkeep files to project subfolders.
2024-09-20 10:47:13 +02:00
Christoffer Lerno
9447913de6
Use arena with JSON parser. Slightly altered output for json printing.
2024-09-20 00:39:10 +02:00
Brian Sinquin
8a9834cac0
Vendor-fetch download to lib directory specified in project.json ( #1422 ) ( #1441 )
...
Vendor-fetch download default destination set to dependency-search-path in project.json Add fetched libraries in the project configuration file dependency entry.
2024-09-19 23:44:05 +02:00