From 9f31829e0c8238ce532bd6babcc30d0c48d0428b Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 29 Jan 2021 18:59:44 +0200 Subject: [PATCH] ci: fix failing clipboard_test.v on macos --- vlib/v/builder/cc.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/v/builder/cc.v b/vlib/v/builder/cc.v index 214ff94bdd..9e8aa05c0a 100644 --- a/vlib/v/builder/cc.v +++ b/vlib/v/builder/cc.v @@ -302,13 +302,13 @@ fn (mut v Builder) setup_ccompiler_options(ccompiler string) { // macOS code can include objective C TODO remove once objective C is replaced with C if v.pref.os == .macos || v.pref.os == .ios { if !ccoptions.is_cc_tcc { - ccoptions.post_args << '-x objective-c' + ccoptions.source_args << '-x objective-c' } } // The C file we are compiling ccoptions.source_args << '"$v.out_name_c"' if v.pref.os == .macos { - ccoptions.post_args << '-x none' + ccoptions.source_args << '-x none' } // Min macos version is mandatory I think? if v.pref.os == .macos {