2011-12-02 04:18:09 +08:00
|
|
|
//===-- 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.
|
|
|
|
//
|
2013-12-05 13:44:44 +08:00
|
|
|
// The variant of this file not ending with .in has been autogenerated by the
|
|
|
|
// LLVM build. Do not edit!
|
2011-12-02 04:18:09 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#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@"
|
2014-12-29 19:16:25 +08:00
|
|
|
#define LLVM_LIBDIR_SUFFIX "@LLVM_LIBDIR_SUFFIX@"
|
2011-12-16 08:04:43 +08:00
|
|
|
#define LLVM_TARGETS_BUILT "@LLVM_TARGETS_BUILT@"
|
2011-12-02 04:18:09 +08:00
|
|
|
#define LLVM_SYSTEM_LIBS "@LLVM_SYSTEM_LIBS@"
|
2015-09-10 00:39:30 +08:00
|
|
|
#define LLVM_BUILD_SYSTEM "@LLVM_BUILD_SYSTEM@"
|
2017-01-11 03:55:51 +08:00
|
|
|
#define LLVM_HAS_RTTI @LLVM_HAS_RTTI@
|
|
|
|
#define LLVM_ENABLE_DYLIB @LLVM_BUILD_LLVM_DYLIB@
|
|
|
|
#define LLVM_LINK_DYLIB @LLVM_LINK_LLVM_DYLIB@
|
|
|
|
#define LLVM_ENABLE_SHARED @BUILD_SHARED_LIBS@
|
Fix `llvm-config` to adapt to the install environment.
Summary:
This patch does a couple of things:
- Adds a new argument `--shared-mode` which accepts a list of components and prints whether or not the provided components need to be linked statically or shared.
- Fixes `--libnames` when CMake BUILD_SHARED_LIBS is used.
- Fixes `--libnames`, `--libs`, and `--libfiles` for dylib when static components aren't installed.
- Fixes `--libnames`, `--libs`, `--libfiles`, and `--components` to use LLVM_DYLIB_COMPONENTS as the component manifest for dylib linking.
- Uses the host platform's usual convention for filename extensions and such, instead of always defaulting to Unix-izms.
Because I don't own a Mac, I am not able to test the Mac platform dependent stuff locally. If someone would be willing to run a build for me on their machine (unless there's a better option), I'd appreciate it.
Reviewers: jfb, brad.king, whitequark, beanz
Subscribers: beanz, jauhien, llvm-commits
Differential Revision: http://reviews.llvm.org/D13198
llvm-svn: 252532
2015-11-10 07:15:38 +08:00
|
|
|
#define LLVM_DYLIB_COMPONENTS "@LLVM_DYLIB_COMPONENTS@"
|
tools/llvm-config: improve shared library support
Summary:
This is a re-commit of r257003, which was reverted,
along with the fixes from http://reviews.llvm.org/D15986.
r252532 added support for reporting the monolithic library
when LLVM_BUILD_LLVM_DYLIB is used. This would only be done
if the individual components were not found, and the dynamic
library is found.
This diff extends this as follows:
- If LLVM_LINK_LLVM_DYLIB is set, then prefer the shared
library, even if all component libraries exist.
- Two flags, --link-shared and --link-static are introduced
to provide explicit guidance. If --link-shared is passed
and the shared library does not exist, an error results.
Additionally, changed the expected shared library names from
(e.g.) LLVM-3.8.0 to LLVM-3.8. The former exists only in an
installation (and then only in CMake builds I think?), and not
in the build tree; this breaks usage of llvm-config during
builds, e.g. by llvm-go.
Reviewers: DiamondLovesYou, beanz
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15986
llvm-svn: 258283
2016-01-20 12:03:09 +08:00
|
|
|
#define LLVM_DYLIB_VERSION "@LLVM_DYLIB_VERSION@"
|
2017-01-11 03:55:51 +08:00
|
|
|
#define LLVM_HAS_GLOBAL_ISEL @LLVM_HAS_GLOBAL_ISEL@
|
2017-06-02 03:20:33 +08:00
|
|
|
#define LLVM_TOOLS_INSTALL_DIR "@LLVM_TOOLS_INSTALL_DIR@"
|