self.cxx.compile_flags += ['-D_LIBCPP_DISABLE_AVAILABILITY']
def configure_env(self):
- self.target_info.configure_env(self.exec_env)
self.config.environment = dict(os.environ)
def add_path(self, dest_env, new_path):
def add_cxx_compile_flags(self, flags): pass
def add_cxx_link_flags(self, flags): pass
- def configure_env(self, env): pass
def allow_cxxabi_link(self): return True
def use_lit_shell_default(self): return False
def add_cxx_link_flags(self, flags):
flags += ['-lSystem']
- def configure_env(self, env):
- library_paths = []
- # Configure the library path for libc++
- if self.full_config.cxx_runtime_root:
- library_paths += [self.full_config.cxx_runtime_root]
-
- # Configure the abi library path
- if self.full_config.abi_library_root:
- library_paths += [self.full_config.abi_library_root]
- if library_paths:
- env['DYLD_LIBRARY_PATH'] = ':'.join(library_paths)
-
def allow_cxxabi_link(self):
# Don't link libc++abi explicitly on OS X because the symbols
# should be available in libc++ directly.