From 982a162fbf1a0f166ea4e1c25ad11216b9cd9b8b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 14 Sep 2019 23:55:12 +0300 Subject: [PATCH] compiler: pass -l flags without space (needed for tcc) --- compiler/cflags.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/cflags.v b/compiler/cflags.v index b56bddfa12..2edb6a2ee9 100644 --- a/compiler/cflags.v +++ b/compiler/cflags.v @@ -30,6 +30,9 @@ fn (v V) get_os_cflags() []CFlag { // format flag fn (cf &CFlag) format() string { mut value := cf.value + if cf.name == '-l' && value.len>0 { + return '${cf.name}${value}'.trim_space() + } // convert to absolute path if cf.name == '-I' || cf.name == '-L' || value.ends_with('.o') { value = '"'+os.realpath(value)+'"'