19292 Commits

Author SHA1 Message Date
Alexander Medvednikov
c050ea64e4 changelog: minor 0.4.9 fixes 2024-12-22 13:18:26 +03:00
Delyan Angelov
2eb2f9f554
tools: add v time, to measure command execution time, in a cross platform way, without relying on other external tools 2024-12-22 11:46:35 +02:00
Carlos Esquerdo Bernat
63fff1dcd4
json: use @[required] to disallow parsing nulls (#23218) 2024-12-22 10:12:58 +02:00
Felipe Pena
1ca902fcc4
checker: fix index validating for []i32{len: 10, init: index} (#23232) 2024-12-22 10:04:36 +02:00
Alexander Medvednikov
3953445988 V 0.4.9 0.4.9 2024-12-22 03:48:41 +03:00
Alexander Medvednikov
76e17bd74b parser: make f(x,y Type) an error; changelog: 0.4.9 2024-12-21 19:19:27 +03:00
Felipe Pena
70152e21e7
cgen: fix build with-parallel-cc, when a closure is used (#23230) 2024-12-21 15:25:35 +02:00
kbkpbot
c968c9ec60
crypt.bcrypt: limit max password length to 72 bytes (#23229) 2024-12-21 13:11:06 +02:00
kbkpbot
40bb8b1d17
cgen: fix profile time on windows (#23227) 2024-12-21 10:43:54 +02:00
Delyan Angelov
290f58a7bc
cgen: reduce RAM usage, by avoiding a .str() call, for the final string builder, containing the final C program, used to write it to a file (#23226) 2024-12-21 07:19:29 +02:00
Felipe Pena
74f0ce6ab4
ci: speed up again sanitizer runs (#23222) 2024-12-20 23:04:43 +02:00
Felipe Pena
052e5af8f3
checker: fix assign check, when rechecking for another concrete type (#23212) 2024-12-20 19:39:11 +02:00
Delyan Angelov
8f684c777c
v.builder: support -no-prod-options with -cc msvc as well 2024-12-20 19:07:10 +02:00
Delyan Angelov
8a934bb4be
v.pref: implement -no-prod-options to turn off passing -O3 -flto, while still keeping the $if prod { branches (passing custom flags with -cflags -Os already works) 2024-12-20 19:00:28 +02:00
Felipe Pena
b0772193f8
vlib: enable more satnitized memleak detection runs without false positives on the CI (#23200) 2024-12-20 16:09:16 +02:00
Delyan Angelov
903e349a7c
v.builder: fail the whole v compilation, if linking or compiling during -parallel-cc fails (#23211) 2024-12-20 08:59:59 +02:00
Delyan Angelov
9ae0a9db9b
v,ast,fmt,parser: support @[tag] for hash statements, like #define and #flag (#23210) 2024-12-20 08:49:03 +02:00
Delyan Angelov
30ececc2a3
v.pref: support -debug and -cdebug, as more explicit alternative names for -g and -cg (#23208) 2024-12-19 21:45:56 +02:00
André Luiz
939d243b5e
veb: fix key value and translation file name (#23203) 2024-12-19 17:46:46 +02:00
larpon
05cbbfbabc
x.ttf: add missing doc strings to the module's public symbols (#23205) 2024-12-19 14:32:41 +02:00
Delyan Angelov
570f84933c v.builder: move filtering logic for -parallel-cc to parallel_cc.v 2024-12-19 14:23:24 +02:00
yuyi
5573667552
cgen: fix all the cases of struct field init with optional fixed array, add more tests (#23204) 2024-12-19 14:20:47 +02:00
Delyan Angelov
47fcfe2b56 v.builder: prevent passing -x objective-c with -parallel-cc for now 2024-12-19 13:44:51 +02:00
Alexander Medvednikov
394f3b1aae ci: change exec name for parallel cc 2024-12-19 12:32:52 +03:00
Delyan Angelov
bc90058b9e
ci: use v retry -- v setup-freetype to make the CI more robust against random network failures 2024-12-18 21:16:25 +02:00
Delyan Angelov
78ed1f703a
strings: use int instead of u16 in strings.levenshtein_distance; it is ~ same performance, but has less constraints 2024-12-18 21:06:54 +02:00
yuyi
e8ee207434
cgen: fix struct field init with optional fixed array (fix #23193, fix #23195) (#23199) 2024-12-18 17:27:43 +02:00
Felipe Pena
41bb90c40d
json: fix memleak on sumtype decoding (#23197) 2024-12-18 15:45:33 +02:00
Felipe Pena
afc07f4675
cgen,checker: minor optimizations (#23191) 2024-12-18 00:49:07 +02:00
Delyan Angelov
9acf058a7f
ci: make the CI more robust, by retrying commands and v download instead of wget (#23196) 2024-12-17 20:03:54 +02:00
Delyan Angelov
1763dc45a8
v.builder: integrate more compile/linker options into parallel_cc.v (#23190) 2024-12-17 19:39:23 +02:00
Delyan Angelov
8835b6f2db
hash,compress.gzip: speedup .gz decompression with tcc, for VTL's mnist_test.v and imdb_test.v (without -prod) 2024-12-17 17:50:36 +02:00
Felipe Pena
00148d11fc
checker: add a notice for global variable redeclarations (#23162) 2024-12-17 16:34:44 +02:00
kbkpbot
a1de8dbd10
vlib: add new rand.cuid2 module (#23181) 2024-12-17 16:32:24 +02:00
larpon
87e017e618
vcomplete: sync all flags from pref.v to auto_complete_flags (#23189) 2024-12-17 14:43:35 +02:00
yuyi
9a6e335601
cgen: fix assign optional aliases of fixed array (fix #23185) (#23188) 2024-12-17 14:39:27 +02:00
Felipe Pena
719fa4dc13
cgen, checker: fix option unwrapping and call from option struct field (#23182) 2024-12-17 12:38:44 +02:00
Alexander Medvednikov
597d4e2239 cbuilder: store split up C files in vtmp 2024-12-17 13:07:00 +03:00
Alexander Medvednikov
a8484387cb cbuilder: remove flto with parallel-cc, it slowed down linking 10x 2024-12-17 12:58:07 +03:00
Felipe Pena
eb74422773
cgen: cleanup g.write_fn_ptr_decl (#23186) 2024-12-17 11:33:09 +02:00
Delyan Angelov
d5e50c2f20
ci: fix option_fn_voidptr_test.v after a200c45 weekly.2024.51 2024-12-17 09:06:53 +02:00
JalonSolov
70edd21c80
ci: remove extra EOL from linux_ci.yml (#23187) 2024-12-17 03:26:05 +03:00
Alexander Medvednikov
b3d2a3faaf ci: linux_ci.vsh; cgen: parallel-cc fixes 2024-12-17 02:31:25 +03:00
Felipe Pena
a200c4540a
checker,cgen: fix missing validation for selector unwrapping + fix default return none for unwrapping (#23183) 2024-12-16 23:17:32 +02:00
Felipe Pena
75ff2e0c86
cgen: fix option fn with voidptr arg (fix #23170 for !=tcc too) (#23179) 2024-12-16 22:59:59 +02:00
Delyan Angelov
1fae506900
docs: add a section for static variables (#23184) 2024-12-16 19:48:43 +02:00
kbkpbot
03f3f7a9ff
net.urllib: fix parse of url relative address (fix #21061) (#23180) 2024-12-16 16:59:58 +02:00
Felipe Pena
b1502d4ff1
parser,checker,cgen,fmt: fix array fixed option initialization (none) (complete #23164) (#23176) 2024-12-16 16:54:46 +02:00
Delyan Angelov
75928d18e0
v.builder: cleanup output of -parallel-cc, allow for setting the optimisation options through CFLAGS_OPT, fix for one core systems (the FreeBSD vps) 2024-12-16 09:07:58 +02:00
yuyi
1ff9f04506
all: check error of generic symbol and cleanup generic symbol (fix #23072) (#23178) 2024-12-16 08:26:52 +02:00