From 1cc52b0fae68cde9fb9472577dddd0fac0a9dd45 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 22 May 2020 10:11:12 +0300 Subject: [PATCH] docs: update obsolete references to the compiler/ folder --- cmd/tools/preludes/tests_with_stats.v | 5 ++--- cmd/tools/vtest-compiler.v | 2 +- doc/docs.md | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/tools/preludes/tests_with_stats.v b/cmd/tools/preludes/tests_with_stats.v index 91562d3584..78d17865a4 100644 --- a/cmd/tools/preludes/tests_with_stats.v +++ b/cmd/tools/preludes/tests_with_stats.v @@ -3,9 +3,8 @@ module main // / This file will get compiled as a part of the same module, // / in which a given _test.v file is, when v is given -stats argument // / The methods defined here are called back by the test program's -// / main function, generated by compiler/main.v so that customizing the -// / look & feel of the results is easy, since it is done in normal V -// / code, instead of in embedded C ... +// / main function, so that customizing the look & feel of the results +// / is easy, since it is done in normal V code, instead of in embedded C ... // ///////////////////////////////////////////////////////////////////// import os import benchmark diff --git a/cmd/tools/vtest-compiler.v b/cmd/tools/vtest-compiler.v index c3f5705138..3f1232b415 100644 --- a/cmd/tools/vtest-compiler.v +++ b/cmd/tools/vtest-compiler.v @@ -16,7 +16,7 @@ fn v_test_compiler(vargs string) { parent_dir := os.dir(vexe) testing.vlib_should_be_present(parent_dir) // Changing the current directory is needed for some of the compiler tests, - // compiler/tests/local_test.v and compiler/tests/repl/repl_test.v + // vlib/v/tests/local_test.v and vlib/v/tests/repl/repl_test.v os.chdir(parent_dir) /* if !os.exists(parent_dir + '/v.v') { diff --git a/doc/docs.md b/doc/docs.md index 8add68cecf..9dd0696f3d 100644 --- a/doc/docs.md +++ b/doc/docs.md @@ -1561,7 +1561,7 @@ and tries to compile it to a .o file, then will use that. This allows you to have C code, that is contained in a V module, so that its distribution is easier. You can see a complete example for using C code in a V wrapper module here: -[minimal V project, that has a module, which contains C code](https://github.com/vlang/v/tree/master/vlib/compiler/tests/project_with_c_code) +[minimal V project, that has a module, which contains C code](https://github.com/vlang/v/tree/master/vlib/v/tests/project_with_c_code) You can use `-cflags` to pass custom flags to the backend C compiler. You can also use `-cc` to change the default C backend compiler. For example: `-cc gcc-9 -cflags -fsanitize=thread`.