Christoffer Lerno
e0ba468b7e
Update mingw libs.
2024-11-14 01:26:29 +01:00
Christoffer Lerno
31cd839063
Switch to <* *> docs. Fix issue with dynamically loaded C3 libs with other C3 code.
2024-10-14 02:14:34 +02:00
Christoffer Lerno
02e9bfaf31
Separate const slice. Fix #1489 . Fix const slice appending. Remove unintended print of char[] as String. Support const conversion of array -> slice.
2024-10-03 15:04:33 +02:00
Christoffer Lerno
44fcba2e3a
Remove LLVM 20
2024-10-01 15:58:23 +02:00
Christoffer Lerno
f434795ee5
Test enable 19 and 20
2024-10-01 15:51:44 +02:00
Christoffer Lerno
a8932910d9
wasm32 / wasm64 targets are use-libc=no by default.
2024-09-25 21:01:00 +02:00
Christoffer Lerno
2a9078a3b4
Also depend on Ubuntu20
2024-09-20 23:14:19 +02:00
Christoffer Lerno
d5a96ed637
Disabling LLVM 19 again.
2024-09-20 19:16:33 +02:00
Christoffer Lerno
8d9eff5297
Re-enable LLVM 19
2024-09-20 16:22:04 +02:00
Christoffer Lerno
62887a6ce8
Temporarily disable building with LLVM 19 and 20
2024-09-17 00:28:53 +02:00
Christoffer Lerno
297a6c9348
Support C3C_LIB and C3C_CC environment variables. Enable compiling against 20 to see if it works.
2024-09-17 00:12:50 +02:00
Real-Packet
1bfe9c568e
chore(ci): Update actions/*-artifact to v4 (simple find & replace)
...
Because v3 is being deprecated and uses Node 16 instead of Node 20.
v4 is also a drop in replacement so we can just find & replace the usages without any changes to easily upgrade to v4.
2024-09-15 02:11:00 +02:00
Christoffer Lerno
c3a5f5c0f0
Build macos version with LLVM 17
2024-09-14 22:18:33 +02:00
Christoffer Lerno
c0875d7987
Fix macos release.
2024-09-14 22:15:16 +02:00
Christoffer Lerno
6b6ac2bcb3
Rename release files.
2024-09-14 20:19:12 +02:00
Real-Packet
3ceaf2ab81
chore: migrate to softprops/action-gh-release
...
Hopefully this works. Had to generate a new GPG key because GPG requires a password for signing stuff with GPG and I forgot to use it to sign something so I could save it in the password manager.
Fixes c3lang/c3c#1437
2024-09-13 15:07:45 +02:00
Christoffer Lerno
de13023981
Converting a slice to a vector/array would copy too little data.
2024-09-06 15:36:43 +02:00
Christoffer Lerno
7134b3ba35
Update Raylib examples to use Raylib5.
2024-08-29 23:34:31 +02:00
Christoffer Lerno
40455f5260
Print linking in CI
2024-08-25 20:30:21 +02:00
Christian Buttner
59ed118e66
Address/memory/thread sanitizer.
2024-08-23 16:06:22 +02:00
Christoffer Lerno
33ce8e8a75
Add path test windows.
2024-08-21 10:15:45 +02:00
Christoffer Lerno
3ccb4b9ec3
$exec may now provide a stdin parameter. Deprecated path.append, path.tappend, getcwd, tgetcwd, path.absolute, ls. Deprecated env::get_config_dir, replaced by env::new_get_config_dir. Added path.has_extension, path.new_append, path.temp_append, new_cwd, temp_cwd, path.new_absolute, new_ls, temp_ls. Added dstring.replace Updated win escapes for exec.
2024-08-15 00:31:47 +02:00
Christoffer Lerno
e68b453218
Do not bundle output with docker.
2024-08-13 15:23:56 +02:00
Tom Clesius
e7e9d3b8c7
Adapt Docker script and Dockerfile ( #1347 )
...
Adapt Docker script and Dockerfile
2024-08-13 13:37:16 +02:00
Christoffer Lerno
baf6e71a80
Fix interface lazy resolution errors. Fix i128 change in LLVM.
2024-08-12 01:25:30 +02:00
Alexey Kutepov
a5b5f315d1
Implement passing arguments to program via compile-run ( #1296 )
2024-08-03 19:47:52 +02:00
Christoffer Lerno
d8820259d2
Enable LLVM 19
2024-08-01 00:21:14 +02:00
Christoffer Lerno
354d78e893
Temporarily disable LLVM for Linux
2024-08-01 00:12:01 +02:00
Chuck Benedict
563e677b08
Add Riscv Example ( #1268 )
...
Add Riscv example. Risc-V CI. Install baremetal toolchain. Prevent imported crt file from messing up linker search.
2024-07-31 14:43:47 +02:00
Christoffer Lerno
51661f5c55
c3c init-lib does not create the directory with the .c3l suffix #1253
2024-07-27 11:52:56 +02:00
Christoffer Lerno
3cbb10392c
Don't generate .o files on compile and compile-run if there is no main.
2024-07-27 05:00:27 +02:00
Christoffer Lerno
168ce752d1
Package Linux binaries in a folder called "c3" and not "linux"
2024-07-27 02:49:09 +02:00
Christoffer Lerno
56f43f55f3
Add WASM test.
2024-07-26 21:39:45 +02:00
Christoffer Lerno
73b15c691d
Deprecate *-add settings, use without -add. Updated CI.
2024-07-26 03:23:30 +02:00
Christoffer Lerno
34fc9851bf
Update wrapper
2024-07-24 14:00:09 +02:00
Christoffer Lerno
a3a275c3d5
Updated linux build
2024-07-19 11:10:59 +02:00
Christoffer Lerno
542406c16f
Exclude 18 for linux for now.
2024-07-19 01:13:49 +02:00
Christoffer Lerno
1fa870411f
Separate LLVM18 compile for Linux in CI
2024-07-19 00:36:04 +02:00
Christoffer Lerno
c096487eea
Test if this fixes LLVM 18 compilation.
2024-07-19 00:32:27 +02:00
Christoffer Lerno
343ccaa2ef
Support c-file compilation in libraries.
2024-07-07 11:21:31 +02:00
Christoffer Lerno
3f62775f4b
Support c-file compilation in libraries.
2024-07-07 02:04:37 +02:00
Christoffer Lerno
c3ecad96b7
Update CI, add example.
2024-07-05 16:53:49 +02:00
Christoffer Lerno
ef716f3a69
Pull requests to dev also have a test action.
2024-07-05 15:17:23 +02:00
Christoffer Lerno
cc935862b7
Build using LLVM 18
2024-07-05 02:06:37 +02:00
Christoffer Lerno
05011df13a
Update flags to mac compile
2024-07-04 02:36:17 +02:00
Christoffer Lerno
4a50de8318
Use LLVM 18 by default. Update MSVC to LLVM 18.1.8.
2024-07-04 00:48:35 +02:00
Christoffer Lerno
2993c422c1
Fix to scalar -> vector conversions.
2024-07-01 15:03:40 +02:00
Christoffer Lerno
e293c435af
0.6.0: init_new/init_temp removed. LinkedList API rewritten. List "pop" and "remove" function now return Optionals. RingBuffer API rewritten. Allocator interface changed. Deprecated Allocator, DString and mem functions removed. "identity" functions are now constants for Matrix and Complex numbers. @default implementations for interfaces removed. any* => any, same for interfaces. Emit local/private globals as "private" in LLVM, following C "static". Updated enum syntax. Add support [rgba] properties in vectors. Improved checks of aliased "void". Subarray -> slice. Fix of llvm codegen enum check. Improved alignment handling. Add --output-dir #1155 . Removed List/Object append. GenericList renamed AnyList. Remove unused "unwrap". Fixes to cond. Optimize output in dead branches. Better checking of operator methods. Disallow any from implementing dynamic methods. Check for operator mismatch. Remove unnecessary bitfield. Remove numbering in --list* commands Old style enum declaration for params/type, but now the type is optional. Add note on #1086 . Allow making distinct types out of "void", "typeid", "anyfault" and faults. Remove system linker build options. "Try" expressions must be simple expressions. Add optimized build to Mac tests. Register int. assert(false) only allowed in unused branches or in tests. Compile time failed asserts is a compile time error. Remove current_block_is_target. Bug when assigning an optional from an optional. Remove unused emit_zstring. Simplify phi code. Remove unnecessary unreachable blocks and remove unnecessary current_block NULL assignments. Proper handling of '.' and Win32 '//server' paths. Add "no discard" to expression blocks with a return value. Detect "unsigned >= 0" as errors. Fix issue with distinct void as a member #1147 . Improve callstack debug information #1184 . Fix issue with absolute output-dir paths. Lambdas were not type checked thoroughly #1185 . Fix compilation warning #1187 . Request jump table using @jump for switches. Path normalization - fix possible null terminator out of bounds. Improved error messages on inlined macros.
...
Upgrade of mingw in CI. Fix problems using reflection on interface types #1203 . Improved debug information on defer. $foreach doesn't create an implicit syntactic scope.
Error if `@if` depends on `@if`. Updated Linux stacktrace. Fix of default argument stacktrace. Allow linking libraries directly by file path. Improve inlining warning messages. Added `index_of_char_from`. Compiler crash using enum nameof from different module #1205 . Removed unused fields in find_msvc. Use vswhere to find msvc. Update tests for LLVM 19
2024-06-12 10:14:26 +02:00
Christoffer Lerno
321c5ec756
Update mingw version and funding.
2024-05-27 12:03:45 +02:00
Christoffer Lerno
e36c696624
Update CI.
2024-05-15 21:49:18 +02:00