[all-commits] [llvm/llvm-project] 83b745: [MSVC] Workaround missing search path for sanitize...

goussepi via All-commits all-commits at lists.llvm.org
Wed Feb 2 03:00:22 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 83b74544c658ad8cc8db721d2796586c0736dd38
      https://github.com/llvm/llvm-project/commit/83b74544c658ad8cc8db721d2796586c0736dd38
  Author: Pierre Gousseau <pierre.gousseau at sony.com>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Support/Compiler.h

  Log Message:
  -----------
  [MSVC] Workaround missing search path for sanitizer headers.

This is to fix build errors "Cannot open include file:
'sanitizer/asan_interface.h'" when building LLVM with MSVC and
LLVM_USE_SANITIZER=Address.

asan_interface.h is not available in MSVC's search path, instead it is
located under %VCToolsInstallDir%/crt/src/sanitizer.
This is an alternate solution to https://reviews.llvm.org/D118159, to
avoid adding all internal crt sources to the header search paths.

Tested with visual studio 2019 v16.9.6 and visual studio 2022 v17.0.5

Reviewed By: aaron.ballman, rnk

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




More information about the All-commits mailing list