From 8e45f73bae2f0a3bef2b6172cd48f3049cc4d5b1 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Thu, 2 Oct 2008 17:26:37 +0000 Subject: [PATCH] Fix ccc handling of -mmacosx-version-min. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@56956 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/ccc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/ccc b/utils/ccc index 1745005c72..a826b005a0 100755 --- a/utils/ccc +++ b/utils/ccc @@ -237,11 +237,13 @@ def main(args): compile_opts.append(arg) if arg[:5] in ['-std=']: compile_opts.append(arg) + if argkey in ('-std', '-mmacosx-version-min'): + compile_opts.append(arg) # Options with one argument that should pass through to compiler - if argkey in [ '-include', '-idirafter', '-iprefix', + if arg in [ '-include', '-idirafter', '-iprefix', '-iquote', '-isystem', '-iwithprefix', - '-iwithprefixbefore', '-mmacosx-version-min']: + '-iwithprefixbefore']: compile_opts.append(arg) compile_opts.append(args[i+1]) i += 1 -- 2.40.0