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
Christoffer Lerno
e9afe4ee25
Update CI script for mac.
2024-04-26 18:09:03 +02:00
Christoffer Lerno
acd067582a
Update CI script.
2024-04-26 18:07:16 +02:00
Christoffer Lerno
11a3dd26c8
Update mingw version.
2024-04-09 14:10:54 +02:00
Christoffer Lerno
e8f0275d8e
0.5.6 Add defer (catch err) feature.
2024-03-25 11:35:16 +01:00
Christoffer Lerno
3251f58d46
Change version for MinGW
2024-03-25 09:40:52 +01:00
Christoffer Lerno
eec3253669
Mingw -> 18.1.1-3
2024-03-15 13:23:41 +01:00
Christoffer Lerno
d9423201b8
Change mingw version.
2024-03-15 13:20:05 +01:00
Christoffer Lerno
7ea3d230bb
0.5.5 features ( #1151 )
...
0.5.5 Disallow multiple `_` in a row in digits, e.g. `1__000`. #1138 . Fixed toposort example. Struct/union members now correctly rejects members without storage size #1147 . `math::pow` will now correctly promote integer arguments. `math::pow` will now correctly promote integer arguments. Added `new_aligned` and `alloc_aligned` functions to prevent accidental under-alignment when allocating simd. Pointer difference would fail where alignment != size (structs etc) #1150 . Add test that overalignment actually works for lists. Fixed array calculation for npot2 vectors. Use native aligned alloc on Windows and POSIX. Deprecates "offset". Simplification of the Allocator interface.
2024-02-22 17:13:51 +01:00
Christoffer Lerno
b7f4fd9074
Create FUNDING.yml
2024-02-20 09:27:21 +01:00
Christoffer Lerno
aee4aecfe7
Remove install_win_reqs.bat from releases.
2024-02-15 22:41:44 +01:00
Christoffer Lerno
748c737e8f
0.5.4: Hash variables accept designated initializers. @safemacro overrides the need for @ in macro names. Fixes to macro context evaluation. Updated allocator api. Removed install_win_reqs.bat. Deterministic @init for MacOS. Fixed temp memory issue with formatter. Support LLVM 19. Add support to compare bitstructs using == and !=. Support Windows .def files. Removed invalid grammar from grammar.y. Support compile time folding of &|^~ for bitstructs. output project setting now respected. Fix issue where constants were not properly constant folded. Add temp_push/pop. Aliased declarations caused errors when used in initializers. Fix export output. Fix of const ternary #1118 . Fix of $$MODULE in nested macros #1117 . Fix debug info on globals. out now correctly detects subscript[] use #1116 . Lateral implicit imports removed. Default to '.' if no libdir is specified. Improved error messages for --lib. Fix raylib snake example. Overzealous local escape check corrected #1127 . Improved yacc grammar #1128 . --linker argument #1067 . Fixes to the matrix operations #1130 . Added GenericList.
2024-02-15 21:39:33 +01:00
Christoffer Lerno
1d61ace302
Do not link with debug libc on win32 when using cross compile libs. Add delete methods to dstring. Fixes to macOS aarch64 codegen. Use glibc backtrace when available. Add load_* methods to file. The cast (int[8])int_slice[:8] now works.
2023-12-08 18:59:57 +01:00
Christoffer Lerno
81c93e3488
Use backtrace on windows. Updated backtrace API
2023-11-16 21:39:27 +01:00
Christoffer Lerno
5e8816e6df
Fixes to native backtrace.
2023-11-13 17:20:46 +01:00
Christoffer Lerno
dc0aa35522
Native Linux backtrace.
2023-11-12 15:20:24 +01:00
Christoffer Lerno
5dedaa8e67
Improve error message when creating an exe and the name is already used by a directory.
2023-11-02 21:24:44 +01:00
Christoffer Lerno
70e7e4b1d2
Enable mingw
2023-10-26 18:54:12 +02:00
Christoffer Lerno
54f32ed71b
Fix alignment for remaining bitstruct binary ops. Turn off broken Mingw LLVM in CI.
2023-10-13 14:43:04 +02:00
Christoffer Lerno
fed343e3bb
Fix alignment for negating bitstructs. Update mingw LLVM versions in CI.
2023-10-13 13:57:44 +02:00
Christoffer Lerno
db3e9c7ec7
Add delete testing for windows and update "clean"
2023-10-11 15:49:05 +02:00