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

os: filename => file_name

This commit is contained in:
yuyi
2020-03-19 22:49:07 +08:00
committed by GitHub
parent 216c7a16d8
commit 010f3efcf0
17 changed files with 20 additions and 20 deletions

View File

@ -54,7 +54,7 @@ fn (v &V) generate_hotcode_reloading_main_caller() {
// We are in live code reload mode, so start the .so loader in the background
mut cgen := v.cgen
cgen.genln('')
file_base := os.filename(v.pref.path).replace('.v', '')
file_base := os.file_name(v.pref.path).replace('.v', '')
if v.pref.os != .windows {
// unix:
so_name := file_base + '.so'
@ -79,7 +79,7 @@ fn (v &V) generate_hot_reload_code() {
// Hot code reloading
if v.pref.is_live {
mut file := os.realpath(v.pref.path)
file_base := os.filename(file).replace('.v', '')
file_base := os.file_name(file).replace('.v', '')
so_name := file_base + '.so'
// Need to build .so file before building the live application
// The live app needs to load this .so file on initialization.