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

compiler: replace the rest of .build with .build_module

This commit is contained in:
Alexander Medvednikov
2019-09-10 18:19:29 +03:00
parent edd8528049
commit 03b3278369
2 changed files with 4 additions and 4 deletions

View File

@ -367,7 +367,7 @@ string _STR_TMP(const char *fmt, ...) {
// Make sure the main function exists
// Obviously we don't need it in libraries
if v.pref.build_mode != .build {
if v.pref.build_mode != .build_module {
if !v.table.main_exists() && !v.pref.is_test {
// It can be skipped in single file programs
if v.pref.is_script {
@ -666,7 +666,7 @@ fn new_v(args[]string) &V {
mut mod := ''
//if args.contains('-lib') {
if joined_args.contains('build module ') {
build_mode = .build
build_mode = .build_module
// v -lib ~/v/os => os.o
//mod = os.dir(dir)
mod = if dir.contains('/') {