summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn')
-rw-r--r--llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn32
1 files changed, 32 insertions, 0 deletions
diff --git a/llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn b/llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn
new file mode 100644
index 00000000000..37e7ebd8846
--- /dev/null
+++ b/llvm/utils/gn/secondary/llvm/tools/llvm-cxxfilt/BUILD.gn
@@ -0,0 +1,32 @@
+import("//llvm/tools/binutils_symlinks.gni")
+import("//llvm/utils/gn/build/symlink_or_copy.gni")
+
+if (llvm_install_binutils_symlinks) {
+ symlink_or_copy("cxxfilt") { # Can't have '+' in target name.
+ deps = [
+ ":llvm-cxxfilt",
+ ]
+ source = "llvm-cxxfilt"
+ output = "$root_out_dir/bin/c++filt" # Note: c++filt, not cxxfilt
+ }
+}
+
+# //:llvm-cxxfilt depends on this symlink target, see comment in //BUILD.gn.
+group("symlinks") {
+ deps = [
+ ":llvm-cxxfilt",
+ ]
+ if (llvm_install_binutils_symlinks) {
+ deps += [ ":cxxfilt" ]
+ }
+}
+
+executable("llvm-cxxfilt") {
+ deps = [
+ "//llvm/lib/Demangle",
+ "//llvm/lib/Support",
+ ]
+ sources = [
+ "llvm-cxxfilt.cpp",
+ ]
+}
OpenPOWER on IntegriCloud