Files
swift-mirror/include/swift/Basic/InitializeLibSwift.h
Erik Eckstein 809ce72e05 libswift: build support for the initial libswift
* add the (still empty) libswift package
* add build support for libswift in CMake
* add libswift to swift-frontend and sil-opt

The build can be controlled with the LIBSWIFT_BUILD_MODE cmake variable: by default it’s “DISABLE”, which means that libswift is not built. If it’s “HOSTTOOLS”, libswift is built with a pre-installed toolchain on the host system.
2021-06-09 11:25:15 +02:00

27 lines
743 B
C++

//===--- InitializeLibSwift.h -----------------------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_BASIC_INITIALIZELIBSWIFT_H
#define SWIFT_BASIC_INITIALIZELIBSWIFT_H
#ifdef __cplusplus
extern "C" {
#endif
void initializeLibSwift();
#ifdef __cplusplus
}
#endif
#endif // SWIFT_BASIC_INITIALIZELIBSWIFT_H