Commit Graph

47 Commits (bf21108fdb2fa20484108fe561020d73db9e00e4)

Author SHA1 Message Date
Alexander Medvednikov a76165828b snake_case consts 2019-10-12 22:36:14 +03:00
Alexander Medvednikov 9850193348 modules cache: reduce verbosity 2019-10-12 22:14:16 +03:00
Delyan Angelov 065ce39577 compiler: -g and -debug should always add -g at least in the C compiler by default
* compiler: -g and -debug should always add -g at least in the C compiler by default.

* Set first the C backend debug_options, so that the optimization_options can override them later.

* Implement cleaner named is_debug, is_vlines, is_keep_c and is_cache options (i.e. -g/-cg, -keep_c, -cache v flags).

* Check and reset file/line numbers in the generated main program, only if v.pref.is_vlines is true.
2019-10-12 13:54:01 +03:00
joe-conigliaro 40156392f8
compiler: cached modules - windows fixes & organise cached module path (#2302)
compiler: cached modules - windows fixes & organise cached module path (#2302)
2019-10-12 16:41:41 +11:00
Alexander Medvednikov b107b4f1e5 modules: create the modules directory if it's missing, use cache/ 2019-10-12 05:04:59 +03:00
joe-conigliaro 51388fea75 compiler: module init function & init consts for cached modules 2019-10-12 01:17:37 +03:00
Alexander Medvednikov e1dd4c19b5 compiler: cache modules if they are not built yet 2019-10-10 22:53:59 +03:00
joe-conigliaro 1b79964827
compiler: allow -debug to work with no prebuilt modules. only use when prebuilt files exist (#2283)
* only use prebuilt modules if they exist (builtin)
2019-10-10 23:00:18 +11:00
Alexander Medvednikov 7423b21429 cc: fix -g 2019-10-10 04:05:27 +03:00
Alexander Medvednikov 48e13a3362 a small cached modules fix 2019-10-10 03:48:11 +03:00
Alexander Medvednikov 4d941b5fdb make V compile itself using cached modules: ~0.3s speed-up 2019-10-10 03:36:27 +03:00
Alexander Medvednikov 2411b8d1e7 module cache fixes; do not allow function names starting with _ 2019-10-10 00:44:26 +03:00
Alexander Medvednikov 29f578d172 cc: bring back os.rm() 2019-10-09 07:02:45 +03:00
Alexander Medvednikov a9a73d9315 caching modules: almost there 2019-10-09 06:35:58 +03:00
joe-conigliaro 24136ab88b compiler: get existing parser using path 2019-10-05 07:10:28 +03:00
Alexander Medvednikov 52f4f4026b
compiler: cache modules 2019-10-04 15:48:09 +03:00
Alexander Medvednikov ee8ff39454 rename ModPath to v_modules_path; do not allow long variable names without _ 2019-09-29 05:34:17 +03:00
Alexander Medvednikov 367f8d6130 solaris: add -lm 2019-09-27 00:53:57 +03:00
Delyan Angelov 22d91148ca compiler: passing -g3 adds mode debug info 2019-09-26 21:58:08 +03:00
Alexander Medvednikov 55d09d23b4 compiler: rename cerror() to verror(); some small optimizations 2019-09-24 19:38:04 +03:00
Delyan Angelov a585c8c22c compiler: compile thirdparty object files using module specific flags 2019-09-23 00:51:59 +03:00
Delyan Angelov 049e228003 compiler: pass -cflags to thirdparty building stage too 2019-09-22 10:56:02 +03:00
Alexander Medvednikov c8a781bf77 disable -compress on windows 2019-09-19 16:05:17 +03:00
Alexander Medvednikov afb372bbdf -compress option 2019-09-19 15:52:38 +03:00
vitalyster 52c5f0172e compiler: always define _UNICODE and UNICODE on Windows 2019-09-17 14:56:32 +03:00
Delyan Angelov 083d747302 V.js: on linux -lm is needed 2019-09-16 22:00:59 +03:00
Alexander Medvednikov a81656568b travis: test JS backend 2019-09-16 19:02:16 +03:00
Alexander Medvednikov 5cc81b91cb JavaSript backend (early stage) 2019-09-15 03:49:57 +03:00
unknown-v 3dc4abddec cc.v: build_module mode fix
Create the modules directory if it's not there.
2019-09-13 20:47:17 +03:00
BigBlack f8d4d6cdc7 compiler: 32-bit option 2019-09-11 19:26:35 +03:00
BigBlack e6354567e5 compiler: fix sizeof and cc 2019-09-11 13:34:19 +03:00
Alexander Medvednikov 03b3278369 compiler: replace the rest of .build with .build_module 2019-09-10 18:19:29 +03:00
Vitor Oliveira edd8528049 compiler: rename build to build_module 2019-09-10 17:36:14 +03:00
joe-conigliaro cb6fadf917 remove freetype submodule accidentally added in #1890 2019-09-08 12:02:03 +03:00
joe-conigliaro e78e284380 compiler: tidy flag order 2019-09-07 19:19:17 +03:00
joe-conigliaro b7361d00aa compiler: fix v test v on paths with spaces 2019-09-06 19:30:55 +03:00
joe-conigliaro 8ac0a2b2dd compiler: rework flags & support win path spaces + more 2019-09-06 15:12:04 +03:00
Alexander Medvednikov c12d4d1bd2 make "build module" generate an object file 2019-09-05 13:01:30 +03:00
Delyan Angelov c9a39dfdb5 compiler: build tetris executable on windows with both msvc and mingw gcc 2019-09-03 16:09:43 +03:00
Alexander Medvednikov b17bf5843c compiler: fix v_win.c generation 2019-08-30 00:07:54 +03:00
Delyan Angelov 83954acfd4 compiler: use cerror instead of panic. 2019-08-29 11:50:18 +03:00
Alexander Medvednikov f29079daac better winroot.zip info message 2019-08-28 21:19:34 +03:00
unknown-v fed9f01b2d use -rdynamic only if host os is not windows 2019-08-28 16:23:53 +03:00
Delyan Angelov 73c6bae480 print backtraces on panic on mac and linux 2019-08-27 23:29:13 +03:00
Sunny Lam a5b44b3bc5 disable implicit-function-declaration for FreeBSD 2019-08-27 12:53:50 +03:00
Alexander Medvednikov d98c20466e cc.v: build with "implicit-function-declaration" and fix declarations
required for the webassembly backend

2
2019-08-24 00:20:53 +03:00
Alexander Medvednikov 624a932420 compiler: cc.v 2019-08-23 12:06:01 +03:00