[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[csmith-project/creduce] b5da96: Do not list `LLVM_LIBS` in the `target_link_librar...



  Branch: refs/heads/master
  Home:   https://github.com/csmith-project/creduce
  Commit: b5da960225de233e3965b98ee86d95b0418921a8
      https://github.com/csmith-project/creduce/commit/b5da960225de233e3965b98ee86d95b0418921a8
  Author: Eric Eide <eeide@cs.utah.edu>
  Date:   2018-06-25 (Mon, 25 Jun 2018)

  Changed paths:
    M clang_delta/CMakeLists.txt

  Log Message:
  -----------
  Do not list `LLVM_LIBS` in the `target_link_libraries`.

When using various prepackaged versions of LLVM 6.0, I was seeing fatal
errors like this when I ran `clang_delta`:

```
$ clang_delta --help
: CommandLine Error: Option 'disable-symbolication' registered more than once!
LLVM ERROR: inconsistency in registered CommandLine options
```

In some way that I do not understand, removing `LLVM_LIBS` from the call
to `target_link_libraries` seems to avoid this problem.  The LLVM
libraries end up in the link line anyway, also for reasons that I do not
understand.

Did I mention that I do not understand the current LLVM CMake magic?



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.