[PATCH] D106305: [compiler-rt][CMake][arm64] Use a custom target for symlinking LSE sources

Steven Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 22 08:32:45 PDT 2021


steven_wu requested changes to this revision.
steven_wu added a comment.
This revision now requires changes to proceed.

No, this doesn't work:

  CMake Error at /Users/steven/dev/monorepo/llvm-project/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:420 (add_custom_target):
    add_custom_target cannot create target "lse_builtin_symlinks" because
    another target with the same name already exists.  The existing target is a
    custom target created in source directory
    "/Users/steven/dev/monorepo/llvm-project/compiler-rt/lib/builtins".  See
    documentation for policy CMP0002 for more details.
  Call Stack (most recent call first):
    /Users/steven/dev/monorepo/llvm-project/compiler-rt/lib/builtins/CMakeLists.txt:674 (darwin_add_builtin_libraries)
  
  
  -- For ios_arm64e builtins preferring aarch64/fp_mode.c to fp_mode.c
  CMake Error at /Users/steven/dev/monorepo/llvm-project/compiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake:420 (add_custom_target):
    add_custom_target cannot create target "lse_builtin_symlinks" because
    another target with the same name already exists.  The existing target is a
    custom target created in source directory
    "/Users/steven/dev/monorepo/llvm-project/compiler-rt/lib/builtins".  See
    documentation for policy CMP0002 for more details.
  Call Stack (most recent call first):
    /Users/steven/dev/monorepo/llvm-project/compiler-rt/lib/builtins/CMakeLists.txt:674 (darwin_add_builtin_libraries)

That is exactly the error I got when I tried custom_target in a slightly different approach. `lse_builtin_symlinks` target is created twice by arm64 and arm64e builtin.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106305/new/

https://reviews.llvm.org/D106305



More information about the llvm-commits mailing list