[cfe-dev] Problem with relinking

Don Hinton via cfe-dev cfe-dev at lists.llvm.org
Tue Mar 26 13:49:51 PDT 2019


<resending to list>

$ cat ~/projects/misc/cmake/llvm-debug.cmake
set(CMAKE_BUILD_TYPE Debug CACHE STRING "")
set(LLVM_OPTIMIZED_TABLEGEN ON CACHE BOOL "")
set(LLVM_APPEND_VC_REV OFF CACHE BOOL "")
set(LLVM_ENABLE_PROJECTS clang clang-tools-extra libcxx libcxxabi CACHE
STRING "")
set(LLVM_TARGETS_TO_BUILD "X86" CACHE STRING "")
set(LLVM_LIT_ARGS '-v' CACHE STRING "")
find_program(GOLD NAMES gold ld.gold)
if(GOLD)
  set(LLVM_USE_LINKER "gold" CACHE STRING "")
endif()
set(CMAKE_C_FLAGS "-I/opt/local/include ${CMAKE_C_FLAGS}" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-I/opt/local/include ${CMAKE_CXX_FLAGS}" CACHE STRING
"")

$ cmake -C <path-to>/llvm-debug.cmake -GNinja <path-to-llvm>


On Tue, Mar 26, 2019 at 1:15 PM Tom Stellard <tstellar at redhat.com> wrote:

> On 03/26/2019 12:51 PM, Don Hinton via cfe-dev wrote:
> > I've noticed that whenever I rebuild, say after updating tree or
> switching branches, I can run ninja and everything seems to build fine.
> However, if I rerun ninja again, without touching anything, it relinks
> everything, but only does this once.  I've investigated a little, but don't
> see anything obvious.
> >
> > Is anyone else seeing this?
> >
>
> What CMake flags are you using?
>
> -Tom
>
> > I'm using the monorepo on a fully up to date Macbook Pro.
> >
> > thanks..
> > don
> >
> >
> > _______________________________________________
> > cfe-dev mailing list
> > cfe-dev at lists.llvm.org
> > https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190326/92b65f38/attachment.html>


More information about the cfe-dev mailing list