mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Apparently `-fvisibility=hidden` is not sufficient to hide some of the symbols in this library. I've explicitly marked the symbols that were flagged as being incorrectly exported as "hidden" so hopefully no one drags them out again. This is a statically linked library, so the symbols shouldn't need to be exported for this work work. To ensure that this is the case and that we're still hitting the overridden API with all of the hidden symbols, I added a debug log line to the fixed `AsyncTask::waitFuture` implementation and have verified that we see the compat56 log message emitted from executables that need the compat56 library.
32 lines
1.0 KiB
C++
32 lines
1.0 KiB
C++
//===--- Error.h - Swift Concurrency error helpers --------------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2020 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// Error handling support.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_CONCURRENCY_ERROR_BACKDEPLOY56_H
|
|
#define SWIFT_CONCURRENCY_ERROR_BACKDEPLOY56_H
|
|
|
|
#include "public/SwiftShims/swift/shims/Visibility.h"
|
|
#include <cstdint>
|
|
#include <stdlib.h>
|
|
|
|
namespace swift {
|
|
|
|
__attribute__((visibility("hidden")))
|
|
SWIFT_NORETURN void swift_Concurrency_fatalError(uint32_t flags, const char *format, ...);
|
|
|
|
} // namespace swift
|
|
|
|
#endif // SWIFT_CONCURRENCY_ERROR_BACKDEPLOY56_H
|