From 41bfed13ca4129dfcbad13027fdf27dd892d2589 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Fri, 17 Nov 2017 23:51:53 +0000 Subject: [PATCH] [CMake][runtimes] Don't passthrough prefixes for non-default targets The passthrough is useful for setting up the options for the default build, but we already have a different mechanism to pass CMake flags to builds for builtins and runtimes targets so this is not really needed there. Furthermore, when the flags are set for the default build, with the prefix passthrough set we have to explicitly override all options in other targets which can be cumbersome. Differential Revision: https://reviews.llvm.org/D39988 llvm-svn: 318571 --- llvm/runtimes/CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt index 3a2f894dfa66..67d60b0b6a44 100644 --- a/llvm/runtimes/CMakeLists.txt +++ b/llvm/runtimes/CMakeLists.txt @@ -247,7 +247,6 @@ else() # if this is included from LLVM's CMake -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON ${${target}_extra_args} TOOLCHAIN_TOOLS clang lld llvm-ar llvm-ranlib - PASSTHROUGH_PREFIXES COMPILER_RT USE_TOOLCHAIN ${EXTRA_ARGS}) endfunction()