Delyan Angelov
252df04ceb
ci: use -silent
for the longer test runs (suppress most OK lines, to reduce scrolling on failure)
2025-02-24 09:35:16 +02:00
Felipe Pena
0f58a02c14
cgen: fix gowrapper codegen for receiver ptrptr ( fix #23798 ) ( #23800 )
2025-02-24 03:54:25 +02:00
Felipe Pena
99216929d6
checker: fix missing struct cast validation ( fix #23748 ) ( #23788 )
2025-02-23 21:06:12 +02:00
Bruno-Vdr
e5e9b5dc08
v.pref: fix panic in parse_args_and_show_errors, called with no args ( fix #23713 ) ( #23794 )
2025-02-23 21:02:47 +02:00
Delyan Angelov
3c88926fdb
term: make the second example in the README.md compilable as well
2025-02-23 14:26:16 +02:00
Delyan Angelov
be3a5362c2
term: add more comments in vlib/term/README.md
2025-02-23 13:40:33 +02:00
Felipe Pena
89d1aac5bd
checker, cgen: fix aggregate var handling on match branch ( fix #23768 ) ( #23787 )
2025-02-23 12:15:10 +02:00
Eliyaan (Nopana)
5376a55cef
native: add support for enums of different types ( #23786 )
2025-02-23 01:06:40 +02:00
Felipe Pena
ffdc1ab702
cgen: fix codegen for match with sumtype ptrptr ( fix #23776 ) ( #23785 )
2025-02-23 01:00:14 +02:00
Delyan Angelov
3f44780be4
sync: cleanup tcc flag declarations on musl based distros like Alpine as well ( #23783 )
2025-02-22 14:24:55 +02:00
Delyan Angelov
9062d76bb4
tools: support module no_main
based examples in v should-compile-all
2025-02-22 14:22:22 +02:00
Delyan Angelov
7d60ce0061
sync: use #flag $when_first_existing()
to cleanup vlib/sync/stdatomic/1.declarations.c.v (followup to #23780 ) ( #23781 )
2025-02-21 22:21:11 +02:00
Eliyaan (Nopana)
515d78d77c
native: cleanup assign, fix nested struct ( #23778 )
2025-02-21 20:04:40 +02:00
Delyan Angelov
b766900e86
v.cflag: support #flag $when_first_existing(libABC.a, /some/path/libABC.a, ...)
, without panicing (unlike #flag $first_existing(...)
) ( #23780 )
2025-02-21 19:29:00 +02:00
Richard Wheeler
5a749582c1
ci: make freebsd_ci.yml runnable on personal forked repos, that are not named v
( #23779 )
2025-02-21 05:22:49 +02:00
Swastik Baranwal
e613211560
checker: allow generic operators to be called in fn ( fix #23773 ) ( #23774 )
2025-02-21 03:07:01 +02:00
Delyan Angelov
6d017f3a31
math.big: fix 1/115792089237316195423570985008687907853269984665640564039457584007908834671663 leading to panic ( fix #23771 )
2025-02-20 18:19:55 +02:00
Delyan Angelov
c5b26c441c
sync: support x86_64-alt-linux gcc paths too when tcc is used (needed for ALT Linux)
2025-02-20 17:16:24 +02:00
Bruno-Vdr
8b3d02de75
strconv: add atou, atou8/16/32/64 utility functions with tests ( #23766 )
2025-02-20 09:53:09 +02:00
Delyan Angelov
cfeb1bb564
ci: skip fibonacci_native.vv on windows for now
2025-02-20 09:24:58 +02:00
Delyan Angelov
5698a6ae79
ci: fix v build-examples
failure on gcc-windows
2025-02-20 09:13:06 +02:00
Alexander Medvednikov
620b365509
native: fibonacci test
2025-02-20 06:59:53 +03:00
Alexander Medvednikov
a045bb0132
all: use arguments() instead of os.args in some files
2025-02-20 03:07:30 +03:00
Richard Wheeler
0dd7698fd1
native: fix missing symbols CaptureStackBackTrace and __debugbreak ( #23765 )
2025-02-19 23:58:18 +03:00
Alexander Medvednikov
af3f6c18f5
native: minor comptime fixes
2025-02-19 20:50:16 +03:00
Felipe Pena
99635cfba9
checker: fix missing check for method that returns veb.Result ( fix #23647 ) ( #23762 )
2025-02-19 17:41:27 +02:00
Delyan Angelov
dfacc3321d
tools: build examples, that start with module no_main
as well
2025-02-19 17:19:50 +02:00
Delyan Angelov
4a8b3151b9
examples: add minimal_c_like_program_using_puts.v showing how to produce a much smaller executable on Linux, using clang, mold and sstrip.
2025-02-19 17:14:03 +02:00
Felipe Pena
70db1499b8
checker: fix spreed operator ref field validation ( fix #23759 ) ( #23760 )
2025-02-19 14:26:50 +02:00
Bruno-Vdr
a694918f4c
strconv : add atoi8/16/32/64 helper functions with their tests ( #23757 )
2025-02-19 02:32:19 +02:00
Eliyaan (Nopana)
1274f46150
native: support negative integer literals ( #23755 )
...
* fix mov64
* add tests for negative integer literals
* raise an error when printing unsigned int
* fix comments
* fix windows CI failure/compiler panic
* fix root cause of panic, provide valid zero ast.IntegerLiteral to c.gen_exit(zero) in Amd64.fn_decl/1
* fix comments, add test
---------
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2025-02-18 18:27:12 +02:00
Delyan Angelov
0c5a6d5a62
ci: rebuild V with v -g self
in .github/workflows/native_backend_ci.yml, to improve remote diagnosis of panics in PRs
2025-02-18 16:40:01 +02:00
Delyan Angelov
337d5b59f3
native: allow for searching for wine system32/ .dlls, and for adding more paths for .dll lookups, by setting VNATIVE_PE_DLL_PATH
, to make it easier to diagnose problems with PE generation on non windows platforms ( #23756 )
2025-02-18 15:48:28 +02:00
Delyan Angelov
c2c15a31a5
ci: update the remaining runners from ubuntu-20.04 to ubuntu-22.04 and ubuntu-24.04 ( #23754 )
2025-02-18 00:28:43 +02:00
Delyan Angelov
01bee65f16
ci: fix github job names in cmd/tools/vtest-self.v
weekly.2025.08
2025-02-17 22:36:07 +02:00
Delyan Angelov
4465c04dc7
ci: fix job names in cmd/tools/modules/testing/common.v as well
2025-02-17 22:34:07 +02:00
Delyan Angelov
da093882f7
net.unix: make unix_socket_test.v trace its actions more thoroughly
2025-02-17 22:26:53 +02:00
Eliyaan (Nopana)
dbc96b22ec
native: fix inc and improve support for i32 ( #23753 )
2025-02-17 21:00:37 +02:00
Delyan Angelov
f2672b1f9f
ci: use distinct names for the jobs, for easier filtering/searching in the Github's UI
2025-02-17 20:58:37 +02:00
Delyan Angelov
3703a8692b
ci: reduce the timeouts in windows_ci.yml to 60 minutes (V is now faster, and the runners use faster hardware as well)
2025-02-17 20:17:36 +02:00
Eliyaan (Nopana)
4a197d7766
native: for statement : add support for all expressions handled by g.condition ( #23752 )
2025-02-17 20:12:08 +02:00
Delyan Angelov
ce666a8f59
make: improve the make install
information message in both GNUmakefile and Makefile (as suggested by JalonSolov) ( #23751 )
2025-02-17 18:55:36 +02:00
Delyan Angelov
e9641875c3
doc: describe what enums are in docs.md ( #23750 )
2025-02-17 18:54:19 +02:00
blackshirt
66e1d14bb4
crypto.ecdsa: migrate core routines for signing (and verifying), it now requires using OpenSSL 3 ( #23705 )
2025-02-17 18:49:32 +02:00
Eliyaan (Nopana)
7e5b58d8d8
native: fix int prints ( #23747 )
2025-02-17 18:35:00 +02:00
Delyan Angelov
2e421bac5b
ci: cleanup windows_ci.yml more; remove the setting of VTEST_SHOW_START: and VERBOSE_MAKE: for all jobs there
2025-02-17 13:19:38 +02:00
Alexander Medvednikov
869677a56a
make: use .exe only on Windows
2025-02-17 14:17:53 +03:00
Delyan Angelov
ef0018d6bc
ci: do not use VJOBS: 1
in the windows tcc job anymore
2025-02-17 13:16:49 +02:00
Delyan Angelov
44464349f1
v.eval: lookup constants in builtin
, when they are not found in the current module; add test ( #23745 )
2025-02-17 12:10:21 +02:00
Delyan Angelov
428b32806e
ci: avoid duplicating work by removing the remaining -skip-unused
tasks, since that is the new default ( #23746 )
2025-02-17 12:09:37 +02:00