mirror of
https://github.com/ziglang/zig.git
synced 2026-01-11 01:45:12 +00:00
Detect system libcxx name with the CMake build system and convey that information to build.zig via config.h so that the same system libcxx is used for stage3. This undoes the hacky search 901457d173467c71b681a8c69f4b77c94d516da7 . closes #17018
34 lines
1.2 KiB
C
34 lines
1.2 KiB
C
/*
|
|
* Copyright (c) 2016 Andrew Kelley
|
|
*
|
|
* This file is part of zig, which is MIT licensed.
|
|
* See http://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
#ifndef ZIG_CONFIG_H
|
|
#define ZIG_CONFIG_H
|
|
|
|
// Used by zig0.cpp
|
|
#define ZIG_VERSION_MAJOR @ZIG_VERSION_MAJOR@
|
|
#define ZIG_VERSION_MINOR @ZIG_VERSION_MINOR@
|
|
#define ZIG_VERSION_PATCH @ZIG_VERSION_PATCH@
|
|
#define ZIG_VERSION_STRING "@ZIG_VERSION@"
|
|
|
|
// Used by build.zig for communicating build information to self hosted build.
|
|
#define ZIG_CLANG_LIBRARIES "@CLANG_LIBRARIES@"
|
|
#define ZIG_CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
|
|
#define ZIG_CMAKE_PREFIX_PATH "@ZIG_CMAKE_PREFIX_PATH@"
|
|
#define ZIG_CMAKE_STATIC_LIBRARY_PREFIX "@CMAKE_STATIC_LIBRARY_PREFIX@"
|
|
#define ZIG_CMAKE_STATIC_LIBRARY_SUFFIX "@CMAKE_STATIC_LIBRARY_SUFFIX@"
|
|
#define ZIG_CXX_COMPILER "@CMAKE_CXX_COMPILER@"
|
|
#define ZIG_DIA_GUIDS_LIB "@ZIG_DIA_GUIDS_LIB_ESCAPED@"
|
|
#define ZIG_LLD_INCLUDE_PATH "@LLD_INCLUDE_DIRS@"
|
|
#define ZIG_LLD_LIBRARIES "@LLD_LIBRARIES@"
|
|
#define ZIG_LLVM_INCLUDE_PATH "@LLVM_INCLUDE_DIRS@"
|
|
#define ZIG_LLVM_LIBRARIES "@LLVM_LIBRARIES@"
|
|
#define ZIG_LLVM_LIB_PATH "@LLVM_LIBDIRS@"
|
|
#define ZIG_LLVM_LINK_MODE "@LLVM_LINK_MODE@"
|
|
#define ZIG_SYSTEM_LIBCXX "@ZIG_SYSTEM_LIBCXX@"
|
|
|
|
#endif
|