Commit graph

17589 commits

Author SHA1 Message Date
Delyan Angelov
a097e540a2
examples: fix v -N examples/regex/regex_example.v 2024-05-01 14:48:55 +03:00
Delyan Angelov
91bef02469
docs: add examples of @[flag] enum Bitfield { autogenerated method usages (for .clear_all(), .zero(), .from/1 etc) 2024-05-01 14:48:55 +03:00
Delyan Angelov
b7387af57a
Revert "v.pref: cleanup conditions in os.v and arch.c.v (#21395)"
This reverts commit df041fe47f.
2024-05-01 14:41:23 +03:00
Turiiya
df041fe47f
v.pref: cleanup conditions in os.v and arch.c.v (#21395) 2024-05-01 14:23:32 +03:00
Turiiya
b632ef6c96
ci: update bootstrapping_ci.yml trigger paths (#21394) 2024-05-01 10:05:04 +03:00
Delyan Angelov
4bc0f0bcff
stbi: make LoadParams.desired_channels public 2024-04-30 23:44:57 +03:00
Turiiya
927cc01f7d
v.pref: cleanup Backend and CompilerType functions, make minor performance adjustments (#21389) 2024-04-30 20:40:18 +03:00
Turiiya
0cd3cf5a96
v.pref: update os_from_string, add missing qnx, remove deprecated wasm options that used - instead of _ (#21390) 2024-04-30 20:38:13 +03:00
Delyan Angelov
7977e73e4b
cgen: fine tune the line count reset for the C footer (fix off by 1 error in 00dd0bf) 2024-04-30 19:38:16 +03:00
Delyan Angelov
00dd0bf938
cgen: use the real C line number instead of #line 1000000 ... in the C footer with -g (#21388) 2024-04-30 17:03:53 +03:00
Turiiya
08b6cc7af5
v.pref: extract architecture related code into arch.c.v; rename pref.c.v to pref.v (#21387) 2024-04-30 17:03:33 +03:00
Delyan Angelov
12ca2f253e
v.pref: fix typo in test 2024-04-30 10:00:01 +03:00
Delyan Angelov
b0484ebdfe
ci: speed up bootstrapping_ci.yml, by using the default tcc when possible 2024-04-30 09:51:45 +03:00
Delyan Angelov
d599631aa1
ci: do trigger bootstrapping_ci.yml periodically, but just on changes 2024-04-30 09:43:39 +03:00
Delyan Angelov
fd66067bc0
ci: set cancel-in-progress to false in bootstrapping_ci.yml to avoid false positives 2024-04-30 09:42:48 +03:00
Turiiya
3861a4badf
builder: simplify generic cc detection (#21380) 2024-04-30 09:03:40 +03:00
Kim Shrier
87a82ba423
v.pref: fix new pref test on FreeBSD (#21385) 2024-04-30 09:01:19 +03:00
Turiiya
45eed64d9b
ci: update detection of accidentally added gpl licenses (#21384)
* ci: update detection of accidentally added gpl licenses

* update checkout step name, use var that stays human friendly for reading on prs
2024-04-30 05:20:22 +03:00
Delyan Angelov
d8c480cc8d
ci: workaround defer codegen failing with nested if blocks and -cstrict in vdoc_file_test.v 2024-04-30 05:04:28 +03:00
Delyan Angelov
caa5fb4b00
tests: make vdoc_file_test.v use bitfield (pure V), make it more informative when it fails, let it clean after itself 2024-04-29 21:37:03 +03:00
Turiiya
a1bb84f455
pref: fix conflict (#21382) 2024-04-29 20:59:57 +03:00
Turiiya
e4bbd73da3
pref: make minor performance related changes / simplify (#21379) 2024-04-29 20:48:42 +03:00
Turiiya
08da3cde2a
pref: fix version flag handling (#21377) 2024-04-29 20:36:54 +03:00
Turiiya
ec59760815
builder: use cc enum in CcompilerOptions, fix cc detection, enable cc guessing without prod flag (#21370) 2024-04-29 17:14:41 +03:00
Turiiya
284aa9dd0c
ci: update symlink ci, add matrix (#21376) 2024-04-29 17:11:48 +03:00
Turiiya
613750153f
ci: update native backend ci matrix (#21375) 2024-04-29 17:03:36 +03:00
Delyan Angelov
bb8a185cba
tests: fix notices for vlib/v/gen/native/macho_test.v 2024-04-29 17:01:11 +03:00
Turiiya
32263652c5
tools: refine check_os_api_parity.v (#21371) 2024-04-29 14:01:34 +03:00
Felipe Pena
f2f7fc3295
checker: ignore last semicolon on or-expr (#21361) 2024-04-29 13:16:55 +03:00
Delyan Angelov
f33b712e84
ci: fix tests-sanitize-address-msvc in sanitized_ci.yml 2024-04-29 12:21:23 +03:00
Delyan Angelov
cf80f11b1a
ci: fix binary_artifact.yml (#21373) 2024-04-29 12:16:23 +03:00
Turiiya
faddc70a1b
ci: split up vsl / vtl run, reducing the tool change CI time from ~19min to ~10min (#21372) 2024-04-29 10:27:11 +03:00
Turiiya
c0afe5dff3
ci: add docker to tools workflow, update ignore paths (#21368) 2024-04-28 17:45:48 +03:00
Turiiya
31171263df
tools: update check_os_api_parity.v (#21367) 2024-04-28 16:11:35 +03:00
Turiiya
a779412300
wasm,tests,ci: prevent false negatives, activate windows in workflow tests (#21365) 2024-04-28 15:55:48 +03:00
Turiiya
53c941e516
ci: update binary_artifact.yml (#21364) 2024-04-28 15:41:54 +03:00
Turiiya
6b05ceb349
ci: enable native code gen and msvc cleancode tests (#21366) 2024-04-28 14:14:41 +03:00
Delyan Angelov
805c1a3f8e
pref: support a shortcut: v -http for v -e "import net.http.file; file.serve()" . 2024-04-28 10:26:49 +03:00
Turiiya
0e711f9f44
tools: utilize environment specific files for vsymlink (#21360) 2024-04-27 10:48:12 +03:00
Turiiya
22323e8a40
ci: update bootstrapping workflow, reactivate v up testing, cleanup (#21355) 2024-04-26 21:05:11 +03:00
Turiiya
5329a0a671
builtin: fix empty string lower / upper assert (#21358) 2024-04-26 21:03:44 +03:00
Turiiya
712a9125bf
all: use apt over apt-get for common APT subcommands (#21359) 2024-04-26 21:01:52 +03:00
Delyan Angelov
f9952053af v.builder: update macos->linux cross compile message (~22MB -> ~77MB) 2024-04-26 20:29:49 +03:00
Delyan Angelov
d80f592830 pref: be more conservative when generating code using -cross, allow for $if cross ? { 2024-04-26 19:27:43 +03:00
Delyan Angelov
2e57e03bd5
benchmark: align C: values for compilations slower than 10 seconds (for some tests on the CI) (#21356) 2024-04-26 17:50:58 +03:00
Delyan Angelov
f13ed6e7be
ci: use macos-13 for cross_ci.yml to force the old non m1 runner 2024-04-26 17:34:33 +03:00
Delyan Angelov
a9247372f7
tools: make fast.v more robust to independent remote changes in vlang/docs 2024-04-26 17:20:55 +03:00
Delyan Angelov
d66de0c514
builtin: fix undefined read s[0], from ''.is_lower() and ''.is_upper() in c7af2c2 2024-04-26 17:07:40 +03:00
Swastik Baranwal
c7af2c21d1
builtin.string: fix is_upper and is_lower with numbers (#21357) 2024-04-26 16:20:21 +03:00
Delyan Angelov
6c113cf777
tools: fix v install for the FreeBSD instance that updates docs.vlang.io . 2024-04-26 15:56:12 +03:00