diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2019-01-08 21:59:50 -0500 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-02-15 09:17:24 -0800 |
commit | d451a4bd97f827bb492fd0c0e357cb20b6056ed9 (patch) | |
tree | fa2b4704bb0132e81b2102ced301b5a7ac51c8de /mesonbuild/compilers/swift.py | |
parent | 3e9396f2590372f484149b48bf3f1c108c9111c3 (diff) | |
download | meson-d451a4bd97f827bb492fd0c0e357cb20b6056ed9.zip meson-d451a4bd97f827bb492fd0c0e357cb20b6056ed9.tar.gz meson-d451a4bd97f827bb492fd0c0e357cb20b6056ed9.tar.bz2 |
Remove get_cross_extra_flags
This is no longer needed, we just remove conditionals around it.
Diffstat (limited to 'mesonbuild/compilers/swift.py')
-rw-r--r-- | mesonbuild/compilers/swift.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mesonbuild/compilers/swift.py b/mesonbuild/compilers/swift.py index eb58d11..94e6736 100644 --- a/mesonbuild/compilers/swift.py +++ b/mesonbuild/compilers/swift.py @@ -105,8 +105,7 @@ class SwiftCompiler(Compiler): with open(source_name, 'w') as ofile: ofile.write('''print("Swift compilation is working.") ''') - extra_flags = self.get_cross_extra_flags(environment, link=True) - pc = subprocess.Popen(self.exelist + extra_flags + ['-emit-executable', '-o', output_name, src], cwd=work_dir) + pc = subprocess.Popen(self.exelist + ['-emit-executable', '-o', output_name, src], cwd=work_dir) pc.wait() if pc.returncode != 0: raise EnvironmentException('Swift compiler %s can not compile programs.' % self.name_string()) |