[all-commits] [llvm/llvm-project] 073137: [clang] Allow -DDEFAULT_SYSROOT to be a relative path

Sam Clegg via All-commits all-commits at lists.llvm.org
Thu Mar 26 13:49:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 0731372ee25c8db93e0d976db4be4ffb7c7329c5
      https://github.com/llvm/llvm-project/commit/0731372ee25c8db93e0d976db4be4ffb7c7329c5
  Author: Sam Clegg <sbc at chromium.org>
  Date:   2020-03-26 (Thu, 26 Mar 2020)

  Changed paths:
    M clang/CMakeLists.txt
    M clang/lib/Driver/Driver.cpp

  Log Message:
  -----------
  [clang] Allow -DDEFAULT_SYSROOT to be a relative path

In this case we interpret the path as relative the clang driver binary.

This allows SDKs to be built that include clang along with a custom
sysroot without requiring users to specify --sysroot to point to the
directory where they installed the SDK.

See https://github.com/WebAssembly/wasi-sdk/issues/58

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




More information about the All-commits mailing list