Skip to content
  • Joseph Tremoulet's avatar
    [CMake] Flag recursive cmake invocations for cross-compile · e5e75afe
    Joseph Tremoulet authored
    Summary:
    Cross-compilation uses recursive cmake invocations to build native host
    tools.  These recursive invocations only forward a fixed set of
    variables/options, since the native environment is generally the default.
    This change adds -DLLVM_TARGET_IS_CROSSCOMPILE_HOST=TRUE to the recursive
    cmake invocations, so that cmake files can distinguish these recursive
    invocations from top-level ones, which can explain why expected options
    are unset.
    
    LLILC will use this to avoid trying to generate its build rules in the
    crosscompile native host target (where it is not needed), which would fail
    if attempted because LLILC requires a cmake variable passed on the command
    line, which is not forwarded in the recursive invocation.
    
    Reviewers: rnk, beanz
    
    Subscribers: llvm-commits
    
    Differential Revision: http://reviews.llvm.org/D12679
    
    llvm-svn: 247151
    e5e75afe
Loading