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

live: fix hot code reloading on macos (use .dylib, not .so)

This commit is contained in:
Delyan Angelov 2020-08-25 21:40:32 +03:00
parent 9b0ef781dc
commit 7879510ef5

View File

@ -16,7 +16,10 @@ pub const (
pub fn new_live_reload_info(original string, vexe string, vopts string, live_fn_mutex voidptr, live_linkfn live.FNLinkLiveSymbols) &live.LiveReloadInfo {
file_base := os.file_name(original).replace('.v', '')
so_dir := os.cache_dir()
so_extension := dl.dl_ext
mut so_extension := dl.dl_ext
$if macos {
so_extension = '.dylib'
}
// $if msvc { so_extension = '.dll' } $else { so_extension = '.so' }
return &live.LiveReloadInfo{
original: original