1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

118 Commits

Author SHA1 Message Date
Delyan Angelov
083dc23db8
gen: implement a [manualfree] tag, for functions, that want to do their own memory management 2021-01-08 16:22:27 +02:00
zakuro
dd516858d4
fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
zakuro
1fb6710c89
build: remove v build file.v (#7695) 2020-12-31 15:24:55 +01:00
zakuro
b28b41d069
v run: pass all args after file.v only to script args, do not process them as v flags (#7672) 2020-12-29 21:16:20 +02:00
Delyan Angelov
100b3704cd
v.pref: fix -nocache, add -no-retry-compilation, add -d trace_use_cache 2020-12-28 09:42:43 +02:00
Delyan Angelov
d1223851a2 pref: support _default.c.v , overridable by _platform.c.v 2020-12-24 12:16:20 +02:00
spaceface
c544cc508b
pref: fix cross-compiling graphical apps to Windows (#7449) 2020-12-21 19:45:12 +02:00
Delyan Angelov
dc3a6bb169
builder: use the same compilation mode for thirdparty object files (#7450) 2020-12-21 17:46:26 +01:00
Alexander Medvednikov
fc965b7d92 strconv: make atoi return ?int 2020-12-21 08:35:24 +01:00
joe-conigliaro
23bfbf1665
cmd/pref: disable -usecache on windows & enable by default (commented) 2020-12-21 03:31:57 +11:00
Alexander Medvednikov
10168d307e pref: remove duplicate flag "build" 2020-12-19 10:34:59 +01:00
Delyan Angelov
adaffd0d8e
pref: pass custom -d options down to v build-module (fix for -usecache) 2020-12-19 01:54:18 +02:00
Delyan Angelov
668483ee56
pref: fix -prof, to behave exactly the same as -profile 2020-12-11 09:28:34 +02:00
Delyan Angelov
d5915bde7c
parser: implement support for -Wimpure-v (#7195) 2020-12-08 17:52:24 +01:00
Delyan Angelov
fbf6910ab9
builder: remove executables after v run file.v 2020-12-05 13:03:12 +02:00
Daniel Däschle
47d0ed308d
parser: prepare for better VLS integration, more accurate parser errors (#7119) 2020-12-04 20:34:05 +02:00
spaceface777
50a3009113
fmt: make single-stmt or blocks single-line (#7126) 2020-12-04 13:25:23 +02:00
Alexander Medvednikov
f4bd953771 pref: vfmt 2020-12-01 04:16:36 +01:00
Alexander Medvednikov
f26f7ebc9d pref: nocache option 2020-12-01 04:05:44 +01:00
spaceface777
83137cbe84
pref: don't use tcc by default in -prod mode (#7053) 2020-12-01 03:58:02 +01:00
Delyan Angelov
b11d285680
v: support multiple paths in VMODULES env variable (#7048) 2020-11-30 18:31:37 +01:00
Delyan Angelov
adeebad2a6
compiler: use thirdparty/tcc/tcc.exe by default, when no explicit -cc is given (#6598) 2020-11-29 16:18:49 +01:00
Nick Treleaven
8f15af6adc
pref: add -m32, -m64 command-line options (#7011) 2020-11-29 14:53:49 +01:00
Alexander Medvednikov
13948152b6 cmd/v: rename reuse-tmpc to keepc 2020-11-27 20:16:24 +01:00
Larpon
2957541e48
pref: fix message on inferred run (#6947) 2020-11-25 21:44:26 +02:00
Nicolas Sauzede
159932d59b
v: run code from stdin echo println(2+2) | v run -, with no repl limits (#6884) 2020-11-20 10:25:59 +02:00
Larpon
f807fd973e
compile: infer source file if a binary by the same name exists in same dir #6877 2020-11-19 16:23:55 +01:00
Delyan Angelov
f42a44abec vfmt: fix match x { 10 /* ... */ {} } and a := [1/* x */, /* y */2, 3] 2020-11-11 22:59:43 +02:00
pancake
af5836202c
js: fix wrong filename and invalid backend selected when using -o .js (#6777) 2020-11-08 17:45:32 +01:00
Delyan Angelov
4b35495fbe all: support VMODULES environment variable (defaulting to ~/.vmodules) 2020-11-08 08:07:17 +02:00
spaceface777
a9e9554b11
all: fix most C warnings (#6758) 2020-11-06 16:26:59 +02:00
Delyan Angelov
cf21c63183 v.vcache: extract v.vcache to a separate module, to test it and reuse it 2020-10-26 18:37:37 +02:00
Delyan Angelov
60cc8ac39c vcache: use 2x wyhash.sum64_string(hk,x).hex_full(), instead of md5.sum(hk.bytes()).hex() 2020-10-25 09:22:31 +02:00
Delyan Angelov
5f6259dde6 v: add VCACHE support for thirdparty object files and for v build-module 2020-10-25 03:09:07 +03:00
Delyan Angelov
8b01146b90 compiler: implement -W and -reuse-tmpc 2020-10-24 20:34:50 +03:00
Delyan Angelov
8f85396a31 builder: use unique .tmp.c and .tmp.c.rsp files, and rm them on successfull non debug builds. 2020-10-24 15:08:45 +03:00
Delyan Angelov
9cf5c9ac43 tests: simplify print mode logic 2020-10-18 20:49:25 +03:00
Delyan Angelov
7bc94fff9a tests: implement compact progress mode (the old one is available with -expand) 2020-10-18 19:27:29 +03:00
Enzo
b083f4014b
fmt: fix multiple things and format most of the compiler (#6631)
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00
Nicolas Sauzede
c825275f7f
pref: fix whitespace in compiler message (#6529) 2020-10-02 05:16:16 +02:00
Nick Treleaven
7e720a1253
pref: do not check arguments after 'run' command (#6524) 2020-10-01 23:30:39 +03:00
Lukas Neubert
3a8be4d8d9
os: home_dir() remove trailing slash (#6512) 2020-09-30 16:02:54 +02:00
Alexander Medvednikov
ae7689f739 autofree: simplify, clean up, and fix complex arg exprs 2020-09-30 07:27:24 +02:00
Delyan Angelov
dc954bbb03 all: use macos consistently in os.user_os and the compiler 2020-09-29 22:32:20 +03:00
Nick Treleaven
05dcdfd267
pref: error if unknown argument passed to v (#6487) 2020-09-29 03:13:54 +02:00
Alexander Medvednikov
9e31335744 pref: remove obsolete flags 2020-09-29 02:54:05 +02:00
spaceface777
ff92c3409d
ast: merge IfExpr and CompIf (#6011) 2020-09-18 00:58:54 +02:00
Delyan Angelov
86dfd3902f tests: use .vv files directly in compiler_errors_test.v 2020-08-25 18:14:06 +03:00
Larpon
d9aae023b1
android: initial support for C output using sokol_main (#6164) 2020-08-19 11:00:15 +02:00
Delyan Angelov
e7b2aefd36 v.pref: handle | as separators in -path option parsing again (as documented in the help) 2020-08-15 22:09:40 +03:00