From 3979e27a78cc84b78a6ec122284d38cc596165e0 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Wed, 3 Dec 2014 21:55:30 +0200 Subject: [PATCH] Get envvar flags for objc and objcpp. --- environment.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/environment.py b/environment.py index 58d0219fc..f4f21fc9c 100644 --- a/environment.py +++ b/environment.py @@ -2078,6 +2078,14 @@ def get_args_from_envvars(lang): compile_args = os.environ.get('CXXFLAGS', '').split() link_args = compile_args + os.environ.get('LDFLAGS', '').split() compile_args += os.environ.get('CPPFLAGS', '').split() + elif lang == 'objc': + compile_args = os.environ.get('OBJCFLAGS', '').split() + link_args = compile_args + os.environ.get('LDFLAGS', '').split() + compile_args += os.environ.get('CPPFLAGS', '').split() + elif lang == 'objcpp': + compile_args = os.environ.get('OBJCXXFLAGS', '').split() + link_args = compile_args + os.environ.get('LDFLAGS', '').split() + compile_args += os.environ.get('CPPFLAGS', '').split() elif lang == 'fortran': compile_args = os.environ.get('FFLAGS', '').split() link_args = compile_args + os.environ.get('LDFLAGS', '').split()