mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Summary: When LLVM is configured to build shared libraries, CMake builds each component as it's own shared object, while autoconfig/make builds them statically and then links them all together to create a single shared object. This change adds compile time config flags to `llvm-config` so it can know whether LLVM's components are separated or not and act accordingly. This fixes `llvm-config` instead of fixing the makefiles to behave like CMake because, AIUI, LLVM's autoconfig/make build system is on the way out anyway. This change only affects `llvm-config` from builds that use autoconfig/make. Reviewers: jfb Subscribers: echristo, dschuff, llvm-commits Differential Revision: http://reviews.llvm.org/D11392 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243297 91177308-0d34-0410-b5e6-96231b3b80d8
31 lines
1.2 KiB
C++
31 lines
1.2 KiB
C++
//===-- BuildVariables.inc.in - llvm-config build variables -*- C++ -*-----===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file is configured by the build system to define the variables
|
|
// llvm-config wants to report to the user, but which can only be determined at
|
|
// build time.
|
|
//
|
|
// The variant of this file not ending with .in has been autogenerated by the
|
|
// LLVM build. Do not edit!
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#define LLVM_SRC_ROOT "@LLVM_SRC_ROOT@"
|
|
#define LLVM_OBJ_ROOT "@LLVM_OBJ_ROOT@"
|
|
#define LLVM_CPPFLAGS "@LLVM_CPPFLAGS@"
|
|
#define LLVM_CFLAGS "@LLVM_CFLAGS@"
|
|
#define LLVM_LDFLAGS "@LLVM_LDFLAGS@"
|
|
#define LLVM_CXXFLAGS "@LLVM_CXXFLAGS@"
|
|
#define LLVM_BUILDMODE "@LLVM_BUILDMODE@"
|
|
#define LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@"
|
|
#define LLVM_TARGETS_BUILT "@LLVM_TARGETS_BUILT@"
|
|
#define LLVM_SYSTEM_LIBS "@LLVM_SYSTEM_LIBS@"
|
|
#define BUILD_SHARED_LIBS "@BUILD_SHARED_LIBS@"
|
|
#define WAS_BUILT_WITH_CMAKE "@WAS_BUILT_WITH_CMAKE@"
|