Christoffer Lerno
6cb6113c57
- Memory leak in Object when not using temp allocators.
...
- Tracking allocator would double the allocations in the report.
2024-08-31 03:35:39 +02:00
Alexey Kutepov
6aea0f12cd
Properly persist git hash on each build ( #1391 )
...
Properly persist git hash on each build
Rebuild `git_hash.h` only when `.git` folder changes
`add_custom_target()` always considers its target out-of-date which
leads to rebuilding of `git_hash.h` on every build (which is
ironically what we wanted) and consequently rebuilding of
build_options.c and relinking of c3c even when no changes are made,
which is mildly annoying.
We are replacing `add_custom_target()` with `add_custom_command()`
which depends on `.git`, so `git_hash.h` is only rebuilt if any git
commands are performed. Which is less annoying.
In case of no `.git` we simply do not depend on it which leads to
`git_hash.h` being rebuilt only once.
2024-08-30 15:01:08 +02:00
Christoffer Lerno
99ace59b45
Create a build library on --test.
2024-08-30 14:55:35 +02:00
Christoffer Lerno
31f9ed3e6b
Methods can now properly be aliased using def #1393 .
2024-08-30 12:50:39 +02:00
Christoffer Lerno
573c0881e9
Correctly use wincrt setting for in libraries.
2024-08-29 23:53:14 +02:00
Christoffer Lerno
3d83316b03
Regression: backtrace accidentally turned off by default.
2024-08-29 19:15:50 +02:00
Christoffer Lerno
dfe80eb050
Improve the error message when the compilation does not produce any files #1390 .
2024-08-28 11:16:39 +02:00
Christoffer Lerno
22151a0a03
Fix bug with defer (catch err) when used together with regular defer.
2024-08-28 10:41:59 +02:00
rexim
484a9acc6f
Print Git Hash on --version
2024-08-27 04:41:39 +02:00
Christoffer Lerno
388578c209
Too restrictive compile time checks for @const. Fixes to wasm nolibc in the standard library.
2024-08-26 13:33:15 +02:00
Christoffer Lerno
b33cce385c
Fix of bug in defer (catch err) with a direct return error.
2024-08-26 11:49:41 +02:00
Christoffer Lerno
61246d713d
Print linking in CI and fix win linking.
2024-08-25 21:10:24 +02:00
Christoffer Lerno
78ce03bd62
Prefer \ to concat windows paths.
2024-08-25 20:14:36 +02:00
Christoffer Lerno
61645d14fa
Only output -pie to the linker for executables. Fix issue assembling paths using concat_file_arg
2024-08-25 19:54:38 +02:00
Christoffer Lerno
d465ba5356
--test will now provide the full filename and the column.
2024-08-25 18:26:44 +02:00
Christoffer Lerno
8fde7cd6f5
--path is now properly respected.
2024-08-25 18:15:33 +02:00
Itzerr
734e0f350a
Fixed gencontext_begin_module using wrong reloc_model. ( #1384 )
...
Fixed gencontext_begin_module using wrong reloc_model.
2024-08-25 18:08:33 +02:00
Chuck Benedict
e1bbab3831
RISCV: Correct auipc imm; clarify signed imm error; add imm negative t… ( #1378 )
...
RISCV: Correct auipc imm; claify signed imm error; add imm negative tests. Allow fitted int asm imm const in uints; add rv regs
2024-08-25 11:19:30 +02:00
Christoffer Lerno
a870881fff
Allow "project.json5" to be used.
2024-08-25 00:19:08 +02:00
Christoffer Lerno
1ed3eab010
Assigning a const zero to an aliased distinct caused an error.
2024-08-24 14:37:27 +02:00
Christoffer Lerno
d1a0ec5a35
Compiler didn't detect when a module name was used both as a generic and regular module.
2024-08-23 19:31:49 +02:00
Nikita Pivkin
cb790b4672
Remove unused parameters from check_col and check_row
...
Signed-off-by: Nikita Pivkin <nikita.pivkin@smartforce.io >
2024-08-23 19:03:03 +02:00
Christoffer Lerno
0722011385
Fix of compile arguments.
2024-08-23 16:47:19 +02:00
Christian Buttner
59ed118e66
Address/memory/thread sanitizer.
2024-08-23 16:06:22 +02:00
Christoffer Lerno
d54468d7ed
Simplify some asm code and update releasenotes for RISCV
2024-08-23 10:23:17 +02:00
Christoffer Lerno
218f1a6ead
Add support for vendor specific extensions in project.json and manifest.json.
2024-08-22 12:49:14 +02:00
Christoffer Lerno
abbd94e89b
Add iOS and Android targets.
2024-08-22 00:31:03 +02:00
Christoffer Lerno
b46463563e
Add path test windows and escape in double quote.
2024-08-21 10:37:50 +02:00
Chuck Benedict
05ab0707fc
Add RISC-V block asm support
2024-08-20 22:42:38 +02:00
Christoffer Lerno
fb4a231703
Add $member.get(value) to replace value.$eval($member.nameof)
2024-08-20 14:24:12 +02:00
Christoffer Lerno
6de17b9ae9
Fix use of deprecated function. Fix bug when compile time subtracting a distinct type. Fix test/benchmark debug info use.
2024-08-19 09:36:45 +02:00
Christoffer Lerno
cb7116f08b
New linker options handling
2024-08-19 01:28:57 +02:00
Christoffer Lerno
15a4e23b22
Benchmark / test no longer suppresses debug info. #1364
2024-08-18 22:29:41 +02:00
Christoffer Lerno
74b8da1e15
Avoid any constants that have the "untyped list" type but isn't a CONST_UNTYPED_LIST.
2024-08-16 21:49:21 +02:00
Christoffer Lerno
16cb756d3f
Bug converting untyped list #1360
2024-08-16 18:33:30 +02:00
Christoffer Lerno
f1efdf3d98
Incorrect zero analysis on foo["test"] = {} #1360
2024-08-16 16:50:58 +02:00
Christoffer Lerno
edfea639cf
- Introduce $vaarg[...] syntax and deprecate the old $vaarg(...).
...
- Similar change to `$vasplat`: `$vasplat` and `$vasplat[1..]`.
2024-08-16 09:28:28 +02:00
Christoffer Lerno
9fd9280132
Fix incorrect parsing of $exec.
2024-08-16 00:07:09 +02:00
Christoffer Lerno
d0bb69516a
Missing check on optional left hand side for s.x. #1360
2024-08-15 21:15:59 +02:00
Christoffer Lerno
dc44254ba1
Debug info with recursive canonical type usage could cause segfault.
2024-08-15 20:22:56 +02:00
Christian Buttner
85c682f7e6
Escape arguments to platform linker/compiler. ( #1358 )
...
* Escape arguments to platform linker/compiler.
2024-08-15 15:01:53 +02:00
Christoffer Lerno
2a69f93605
Issues with wincrt linking.
2024-08-15 13:33:08 +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
6bc486400c
Add globals to -P output.
2024-08-13 22:50:45 +02:00
Christoffer Lerno
9228dbb8b8
Fix ordering issues with $include / $exec by adding a pass #1302 .
2024-08-13 22:19:53 +02:00
Christoffer Lerno
1dd2b0ec19
Add a few newlines to maybe keep some compilers happy.
2024-08-13 14:33:33 +02:00
kostyavechkanov
800ad9e898
Feature/add-target ( #1 ) ( #1350 )
...
Feature/add target (#1 ) project add-target command
2024-08-13 13:34:53 +02:00
Christoffer Lerno
ddecf2d5f0
Correctly show macOS version settings for project.json
2024-08-13 10:25:15 +02:00
Christoffer Lerno
1678e2a939
Assert not properly traced #1354 . Update interface fix.
2024-08-12 21:01:04 +02:00
Christoffer Lerno
9aab962ebc
Interface resolution when part of generics #1348 .
2024-08-12 10:25:53 +02:00