[all-commits] [llvm/llvm-project] 4cfb04: [profile] Don't use pragma comment linker on mingw

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Aug 16 09:21:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4cfb047d6ab3259c20059e8ed4c15ece3d6eb723
      https://github.com/llvm/llvm-project/commit/4cfb047d6ab3259c20059e8ed4c15ece3d6eb723
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-08-16 (Mon, 16 Aug 2021)

  Changed paths:
    M compiler-rt/lib/profile/CMakeLists.txt
    M compiler-rt/lib/profile/InstrProfilingFile.c

  Log Message:
  -----------
  [profile] Don't use pragma comment linker on mingw

At least when compiling with gcc, this is not supported and will
result in errors when linking against the profiler runtime. Only
use the pragma comment linker based code with MSVC, but not with
a mingw toolchain. This also undoes D107620, which shouldn't be
relevant anymore.

Differential Revision: https://reviews.llvm.org/D108095




More information about the All-commits mailing list