diff options
-rw-r--r-- | .cargo/config | 5 | ||||
-rw-r--r-- | python/servo/build_commands.py | 7 |
2 files changed, 5 insertions, 7 deletions
diff --git a/.cargo/config b/.cargo/config index 9df45ac6ba9..ef627b28bab 100644 --- a/.cargo/config +++ b/.cargo/config @@ -35,4 +35,7 @@ linker = "lld-link.exe" linker = "lld-link.exe" [target.aarch64-uwp-windows-msvc] -linker = "lld-link.exe"
\ No newline at end of file +linker = "lld-link.exe" + +[env] +MACOSX_DEPLOYMENT_TARGET = "10.10" diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index f0968a235bf..4b0858f6ff1 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -79,15 +79,10 @@ class MachCommands(CommandBase): build_start = time() host = servo.platform.host_triple() - target_triple = self.cross_compile_target or servo.platform.host_triple() - if 'apple-darwin' in host and target_triple == host: - if 'CXXFLAGS' not in env: - env['CXXFLAGS'] = '' - env["CXXFLAGS"] += "-mmacosx-version-min=10.10" - if 'windows' in host: vs_dirs = self.vs_dirs() + target_triple = self.cross_compile_target or servo.platform.host_triple() if host != target_triple and 'windows' in target_triple: if os.environ.get('VisualStudioVersion') or os.environ.get('VCINSTALLDIR'): print("Can't cross-compile for Windows inside of a Visual Studio shell.\n" |