Commit Graph

250 Commits (46a096b95d6fdfcd09c0ea203d3af86da27c06ad)

Author SHA1 Message Date
Delyan Angelov 3fa9128716
cgen,pref: support `-profile-fns strings__new_builder,i64_str -profile -` 2022-01-26 20:39:47 +02:00
Delyan Angelov 359b674cff
ci: fix more failing tests 2022-01-22 23:18:09 +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
Delyan Angelov 9e0156b46a
net: copy the freebsd address declarations for netbsd, openbsd, dragonfly 2022-01-20 20:15:50 +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
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Delyan Angelov 68ada041e6
tests: support `VTEST_ONLY_FN=*test_sincos* ./v test .` and `./v test -run-only test_sin .` 2021-12-20 18:45:04 +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
playX 11d2b8b354
js: support `-es5` flag (#12846) 2021-12-15 15:47:34 +02:00
Delyan Angelov 3afbb9e90a
all: split all backends into cmd/tools/builders (#12811) 2021-12-12 22:10:43 +03:00
crthpl 2fbf7fea75
all: initial interpreter code (#12605) 2021-12-08 11:09:10 +03:00
Alexander Medvednikov c14c324125 pref: .o build mode 2021-11-29 05:00:25 +03:00
Delyan Angelov 6914763493
vc: reduce further the average vc commit diff size 2021-11-22 16:46:28 +02:00
Delyan Angelov fe48380e85
os: cleanup; ci: fix a segfault in the tcc32 job when calling pref.vexe_path() -> os.real_path(os.executable()) 2021-11-22 10:32:10 +02:00
yuyi 08667c5645
pref: allow running a .vsh script with just `v build.vsh gcc`, instead of `v run build.vsh gcc` (#12409) 2021-11-08 15:18:11 +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
Lance Fredrickson 7c1fff3495
builder: pass `-std=gnu99` to the C backend under linux (#12236) 2021-10-20 14:26:25 +03:00
playX c1aa782a6c
js,checker: fix some modules build for `v -b js self`, fix `or block` check in ast.CallExpr (#12231) 2021-10-19 12:11:54 +03:00
playX d373eba79b
js: implement more functions for JS backend (#12167) 2021-10-13 09:40:14 +03:00
Delyan Angelov d14b5d0c11
ci: reduce flakyness of vlib/v/pref/options_test.v on ubuntu 2021-10-09 12:58:21 +03:00
Delyan Angelov 60add6cc28
ci: fix failing tests 2021-10-07 19:22:08 +03:00
Alexander Medvednikov c356e347f5 pref: do not allow -prod with v run 2021-10-07 16:13:58 +03:00
Delyan Angelov 6d2c1f7e2c
v.gen.c: enable again parallel cgen for `-g`, make `-g` more robust 2021-10-05 21:51:49 +03:00
Delyan Angelov e23d61d99e
v.pref: disable the parallel cgen when `-g` is given for now (the line numbers/paths are wrong) 2021-10-05 15:08:28 +03:00
Delyan Angelov 8f4fe61381 v.pref: only show the `disabling parallel cgen` message when -no-parallel was not given and -prealloc was 2021-09-28 11:52:27 +03:00
crthpl 85b58b03a3
cgen: parallelize (#10844) 2021-09-28 10:28:04 +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 76f70d51f3
ci: fix another options_test.v failute, refactor for readability 2021-09-19 08:49:52 +03:00
Delyan Angelov 0b4e03ad5c
ci: fix the failing new options_test.v on the `ubuntu` job 2021-09-18 21:10:41 +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
Alexander Medvednikov 8fc0b486a2 builtin: fix string interpolation when compiling with -nofloat 2021-09-13 18:40:32 +03:00
Alexander Medvednikov c99281709b pref: define nofloat comptime define 2021-09-13 18:35:21 +03:00
Alexander Medvednikov cfcc57f5d3 checker: remove unnecessary "no methods" error; builder: skip float.c.v with -nofloat 2021-09-13 18:14:26 +03:00
Alexander Medvednikov 5c4385a472 cgen: nofloat for kernel code 2021-09-10 20:54:48 +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
playX 08c517c966
strconv,v.gen.js: proper optionals returns, strconv compiles to the JS backend (#11364) 2021-09-03 12:16:07 +03:00
Delyan Angelov 0be20f1556
v.pref: keep the -error-limit option for now too 2021-08-15 13:46:50 +03:00
Leo Developer b3094b0667
checker: abort prematurely on too many errors (#11185) 2021-08-15 13:41:51 +03:00
Delyan Angelov eef7eea7bc
v.pref, v.builder: support `-no-std` (skips passing `-std=c99` to the C backend) 2021-08-15 11:05:06 +03:00
Delyan Angelov f7cbcc241a
v.pref, v.builder: support `-no-rsp` (pass C options directly to the C compiler backend, without writing response files) 2021-08-15 10:47:44 +03:00
Delyan Angelov 3ffa6c1664
v.pref: fix `./v -usecache -cg run examples/hello_world.v` 2021-08-15 08:35:41 +03:00
Leo Developer 8a8a0932f7
all: add limit to accumulated errors / warnings (#11183) 2021-08-14 19:49:21 +03:00
Delyan Angelov 47884dfd1f
builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
Delyan Angelov 33e4dc3ad3
ci: fix coutput_test.v on windows by fixing `-o -` on windows 2021-08-01 00:27:06 +03:00
Delyan Angelov 7d5b6d2b48
fix running `v run file.v` in a current working folder containing a run/ subfolder 2021-07-30 03:28:54 +03:00
Delyan Angelov d25bd95a0e
v: support -show-depgraph in addition to -show-callgraph 2021-07-28 16:42:11 +03:00
Delyan Angelov c8e671d88c
v.pref: support a `-show-callgraph` option 2021-07-24 13:32:56 +03:00
Delyan Angelov 6313ed6a79
checker,cgen: fix `-os cross` support for `$if !solaris { #include <sys/ptrace.h> }` 2021-07-23 16:24:42 +03:00