mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* 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.
27 lines
743 B
C++
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
|