diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-07 23:39:59 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-07 23:43:16 +0300 |
commit | 365f529c75a6b55278db2ee5749d26a29a56fa83 (patch) | |
tree | 777f5a526a9f5753c912bcd73a1204715eab3698 /build.py | |
parent | f88779319d61e316bef8e5b3f9241cf2d80b3e6d (diff) | |
download | meson-365f529c75a6b55278db2ee5749d26a29a56fa83.zip meson-365f529c75a6b55278db2ee5749d26a29a56fa83.tar.gz meson-365f529c75a6b55278db2ee5749d26a29a56fa83.tar.bz2 |
Store build flags into coredata as it is persistent and needs to survive over Meson reconfigurations.
Diffstat (limited to 'build.py')
-rw-r--r-- | build.py | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -33,8 +33,6 @@ class Build: self.compilers = [] self.cross_compilers = [] self.global_args = {} - self.external_args = {} # These are set from "the outside" with e.g. mesonconf - self.external_link_args = {} self.tests = [] self.headers = [] self.man = [] @@ -60,25 +58,6 @@ class Build: if self.has_language(compiler.get_language()): return self.compilers.append(compiler) - self.get_flags_from_envvars(compiler) - - def get_flags_from_envvars(self, compiler): - lang = compiler.get_language() - if lang == 'c': - compile_flags = os.environ.get('CFLAGS', '').split() - compile_flags += os.environ.get('CPPFLAGS', '').split() - link_flags = compile_flags + os.environ.get('LDFLAGS', '').split() - elif lang == 'cpp': - compile_flags = os.environ.get('CXXFLAGS', '').split() - compile_flags += os.environ.get('CPPFLAGS', '').split() - link_flags = compile_flags + os.environ.get('LDFLAGS', '').split() - else: - compile_flags = [] - link_flags = [] - if len(compile_flags) > 0: - self.external_args[lang] = compile_flags - if len(link_flags) > 0: - self.external_link_args[lang] = link_flags def add_cross_compiler(self, compiler): if len(self.cross_compilers) == 0: |