fix v -live on macOS
parent
2a1b0a8cae
commit
4888d27b71
|
@ -114,7 +114,6 @@ void lfnmutex_print(char *s){
|
||||||
|
|
||||||
if v.os != .windows {
|
if v.os != .windows {
|
||||||
cgen.genln('
|
cgen.genln('
|
||||||
#include <dlfcn.h>
|
|
||||||
void* live_lib=0;
|
void* live_lib=0;
|
||||||
int load_so(byteptr path) {
|
int load_so(byteptr path) {
|
||||||
char cpath[1024];
|
char cpath[1024];
|
||||||
|
|
|
@ -284,6 +284,9 @@ pub fn (v mut V) compile() {
|
||||||
if '-debug_alloc' in os.args {
|
if '-debug_alloc' in os.args {
|
||||||
cgen.genln('#define DEBUG_ALLOC 1')
|
cgen.genln('#define DEBUG_ALLOC 1')
|
||||||
}
|
}
|
||||||
|
if v.pref.is_live && v.os != .windows {
|
||||||
|
cgen.includes << '#include <dlfcn.h>'
|
||||||
|
}
|
||||||
//cgen.genln('/*================================== FNS =================================*/')
|
//cgen.genln('/*================================== FNS =================================*/')
|
||||||
cgen.genln('// this line will be replaced with definitions')
|
cgen.genln('// this line will be replaced with definitions')
|
||||||
mut defs_pos := cgen.lines.len - 1
|
mut defs_pos := cgen.lines.len - 1
|
||||||
|
|
Loading…
Reference in New Issue