#!/usr/bin/env python3
#===----------------------------------------------------------------------===##
#
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#
#===----------------------------------------------------------------------===##
"""
Generate a linker script that links libc++ to the proper ABI library.
An example script for c++abi would look like "INPUT(libc++.so.1 -lc++abi)".
"""
=
=
# Use the relative path for the libc++ library.
=
# Prepare the list of public libraries to link.
=
# Generate the linker script contents.
= %
# Remove the existing libc++ symlink if it exists.
# Replace it with the linker script.
return 0