Index: test/libcxx/test/target_info.py =================================================================== --- test/libcxx/test/target_info.py +++ test/libcxx/test/target_info.py @@ -170,8 +170,6 @@ llvm_unwinder = self.full_config.get_lit_bool('llvm_unwinder', False) shared_libcxx = self.full_config.get_lit_bool('enable_shared', True) flags += ['-lm'] - if not llvm_unwinder: - flags += ['-lgcc_s', '-lgcc'] if enable_threads: flags += ['-lpthread'] if not shared_libcxx: @@ -179,8 +177,7 @@ flags += ['-lc'] if llvm_unwinder: flags += ['-lunwind', '-ldl'] - else: - flags += ['-lgcc_s', '-lgcc'] + flags += ['-lgcc_s', '-lgcc'] use_libatomic = self.full_config.get_lit_bool('use_libatomic', False) if use_libatomic: flags += ['-latomic']