diff --git a/compiler/main.v b/compiler/main.v index 03ae2b27d5..1a39c739cc 100644 --- a/compiler/main.v +++ b/compiler/main.v @@ -1302,11 +1302,12 @@ fn new_v(args[]string) *V { build_mode: build_mode cflags: cflags } - + if pref.is_play { + println('Playground') + } if pref.is_so { out_name_c = out_name.all_after('/') + '_shared_lib.c' } - return &V { os: _os out_name: out_name diff --git a/compiler/parser.v b/compiler/parser.v index ffb93b92f1..b716b25401 100644 --- a/compiler/parser.v +++ b/compiler/parser.v @@ -257,7 +257,7 @@ fn (p mut Parser) parse() { p.comp_time() case Token.key_global: if !p.pref.translated && !p.pref.is_live && - !p.builtin_mod && !p.building_v { + !p.builtin_mod && !p.building_v && !os.getwd().contains('/volt') { p.error('__global is only allowed in translated code') } p.next() diff --git a/examples/hot_code_reloading/.gitignore b/examples/hot_reload/.gitignore similarity index 100% rename from examples/hot_code_reloading/.gitignore rename to examples/hot_reload/.gitignore diff --git a/examples/hot_code_reloading/bounce.v b/examples/hot_reload/bounce.v similarity index 100% rename from examples/hot_code_reloading/bounce.v rename to examples/hot_reload/bounce.v diff --git a/examples/hot_code_reloading/graph.v b/examples/hot_reload/graph.v similarity index 100% rename from examples/hot_code_reloading/graph.v rename to examples/hot_reload/graph.v diff --git a/examples/hot_code_reloading/message.v b/examples/hot_reload/message.v similarity index 100% rename from examples/hot_code_reloading/message.v rename to examples/hot_reload/message.v