Commit Graph

429 Commits (359b674cffdeec68012fd297713b4f25158a43f4)

Author SHA1 Message Date
Delyan Angelov 62c3ad4953
use os.quoted_path more 2022-01-22 22:22:22 +02:00
Delyan Angelov fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
playX 4d166e3b55
all: add support for `-os wasm32` (needs clang-12 installed for now) (#13094) 2022-01-08 11:06:32 +02:00
playX ec91de3504
builtin: use dlmalloc for `-freestanding` (#13054) 2022-01-06 14:10:37 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Delyan Angelov feadf777c3
builder: fix a bug in error_context_lines 2022-01-04 10:59:39 +02:00
pancake 4b55800ffd
v.eval: add tests and fix runtime cast crash (#13019) 2022-01-03 18:30:42 +02:00
Delyan Angelov 4114dd0815
v.builder: fix `v -no-retry-compilation -cc tcc -usecache examples/tetris/` 2021-12-29 21:45:01 +02:00
Delyan Angelov 99fdcd2e71
v.builder: fix `v -cc tcc -no-retry-compilation build-module vlib/sync/stdatomic` 2021-12-29 21:32:30 +02:00
Delyan Angelov 840a92c14e
v.builder: change the default stack size for apps produced by MSVC to 16MB 2021-12-19 18:40:29 +02:00
Delyan Angelov 6ff953d936
preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523) 2021-12-16 15:59:46 +02:00
Delyan Angelov 1261468d8e
ci: fix failed windows-msvc task (sokol examples) 2021-12-15 20:18:45 +02:00
Delyan Angelov c900dc1053
ci: use -Wno-excess-initializers for clang -cstrict, cleanup cgen 2021-12-14 17:14:45 +02:00
Delyan Angelov 3afbb9e90a
all: split all backends into cmd/tools/builders (#12811) 2021-12-12 22:10:43 +03:00
Delyan Angelov 9b7a50b1a2
v: split the interpreter to cmd/tools/vinterpret.v 2021-12-12 00:06:44 +02:00
crthpl 2fbf7fea75
all: initial interpreter code (#12605) 2021-12-08 11:09:10 +03:00
Delyan Angelov 6749979534
builder: fix the uhm `fine` module lookup bug (part 1) 2021-11-29 22:54:52 +02:00
Delyan Angelov 6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
Delyan Angelov 6299a73e90
builder: prepare for `v -b native -os windows run file.v` 2021-11-26 12:05:58 +02:00
pancake 9eac656e55
native: support passing a directory, instead of just a .v file (#12512) 2021-11-19 10:30:46 +02:00
Delyan Angelov 008d15dcb5
builder,pref: add support for `-no-builtin` (useful for writing Linux kernel modules) 2021-10-23 12:53:53 +03:00
czkz da7dad07a3
builder: fix sigint handling for `v run` (#12246) 2021-10-21 16:40:32 +03:00
yuyi ff02c19827
table, builder, checker: cleanup unwrap_generic (#12241) 2021-10-21 05:48:02 +03:00
Lance Fredrickson 7c1fff3495
builder: pass `-std=gnu99` to the C backend under linux (#12236) 2021-10-20 14:26:25 +03:00
Delyan Angelov b23984a211
builder: only print the thirdparty object rebuilding line with '-v' 2021-10-18 13:28:09 +03:00
czkz 3a073329ff
builder: use os.new_process() instead of os.system() in v run (#12214) 2021-10-17 19:01:34 +03:00
Delyan Angelov dee4ffbc99
builder: make -usecache rebuild cached, but changed modules, and their dependants (#12193) 2021-10-15 12:22:59 +03:00
pancake a0a0ae85eb
native: add support for pe64 when -os windows is used (#12149) 2021-10-12 10:43:40 +03:00
Delyan Angelov 149517ced4
v.builder,v.gen: time Builder.front_stages.parse_files, Builder.resolve_deps, Gen.sort_structs 2021-09-30 20:49:19 +03:00
playX 4333a53f28
js: support running `.js.v` tests in `v test-self`, fixes for array methods & codegen (#12011) 2021-09-29 15:33:14 +03:00
Delyan Angelov 87fe15e39f
ci: fix typo 2021-09-28 15:30:05 +03:00
Delyan Angelov 3467ab1551
ci: fix the `g++` build and the `alpine-musl` task 2021-09-28 15:29:00 +03:00
crthpl 85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +03:00
yuyi 108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Delyan Angelov 5cf0ee46b3
v.pref,v.builder: support overriding the C cross compiler by setting `VCROSS_COMPILER_NAME` 2021-09-20 19:57:43 +03:00
Delyan Angelov 6b2cc9c5cf
v.pref: add a simple options_test.v to check for -cflags regressions 2021-09-18 16:08:15 +03:00
Delyan Angelov 2eeba4758a
v.builder: fix `-cc msvc -cflags /O2` and support CFLAGS and LDFLAGS env vars 2021-09-18 09:14:21 +03:00
yuyi fb75d528eb
builder: remove panics, when cleaning up tmp files after tests (#11525) 2021-09-17 20:56:33 +03:00
playX c175b4fd48
v.gen.js: refactor code, fix alias codegen, `-stats` now again works with tests on the JS backend (#11512) 2021-09-16 14:00:15 +03:00
Ekopalypse 41fc4c55c6
v.builder: simplify target architecture logic for msvc (#11491) 2021-09-14 17:47:26 +03:00
Ekopalypse f9eb14d914
builder: remove fPic argument from windows builds (#11467) 2021-09-11 04:48:02 +03:00
Delyan Angelov bdd053fcf1
v.builder: fix `./v examples/v_script.vsh` on windows (this quickfix is thanks to yuyi98) 2021-09-10 12:30:40 +03:00
playX 72089c4feb
js: use prefixed names for functions and global symbols (#11387) 2021-09-08 20:30:46 +03:00
Delyan Angelov aec016bb14
v.builder: change exit code of `v -check file.v` to 0, when file.v is clean from any errors. 2021-09-07 07:29:45 +03:00
Ned Palacios aedb6b8e84
v.builder: implement a `-check` mode, that runs only the parser + the checker, without codegen (#11414) 2021-09-07 07:17:53 +03:00
Delyan Angelov 9496fcdfe1 v.builder: fix compilation with tcc on FreeBSD 13.0 2021-08-30 13:21:49 +00:00
Alexander Medvednikov 853d3cb83e os: make chmod() return error 2021-08-28 09:37:24 +03:00
Alexander Medvednikov 858ba25d55 os: make chdir() return error 2021-08-28 09:35:39 +03:00
Alexander Medvednikov 4824b409b1 builder: simplify the C error message 2021-08-24 06:24:35 +03:00
Delyan Angelov 9ca99c6f93
v.builder: add `-Wl,--allow-multiple-definition` when targeting FreeBSD 2021-08-18 12:57:44 +03:00