mirror of
https://github.com/apple/swift-system
synced 2026-11-29 05:24:25 +00:00
migrate CSystem to systemLibrary
for some reason, the linker on my linux machine fails to link the tests otherwise. investigate / fix before merging.
This commit is contained in:
1 parent
1f821a8539
commit
0762f57d80
6 files changed
+7
-21
No files matched your search
+2
-3
@@ -21,9 +21,8 @@ let package = Package(
|
||||
.package(url: "https://github.com/apple/swift-atomics", from: "1.1.0")
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "CSystem",
|
||||
dependencies: []),
|
||||
.systemLibrary(
|
||||
name: "CSystem"),
|
||||
.target(
|
||||
name: "SystemPackage",
|
||||
dependencies: [
|
||||
|
||||
File renamed without changes.
File renamed without changes.
@@ -5,6 +5,9 @@
|
||||
#include <signal.h>
|
||||
#include <linux/io_uring.h>
|
||||
|
||||
#ifndef SWIFT_IORING_C_WRAPPER
|
||||
#define SWIFT_IORING_C_WRAPPER
|
||||
|
||||
#ifdef __alpha__
|
||||
/*
|
||||
* alpha is the only exception, all other architectures
|
||||
@@ -48,3 +51,5 @@ int io_uring_enter(int fd, unsigned int to_submit, unsigned int min_complete,
|
||||
return syscall(__NR_io_uring_enter, fd, to_submit, min_complete,
|
||||
flags, sig, _NSIG / 8);
|
||||
}
|
||||
|
||||
#endif
|
||||
File renamed without changes.
@@ -1,18 +0,0 @@
|
||||
/*
|
||||
This source file is part of the Swift System open source project
|
||||
|
||||
Copyright (c) 2020 Apple Inc. and the Swift System project authors
|
||||
Licensed under Apache License v2.0 with Runtime Library Exception
|
||||
|
||||
See https://swift.org/LICENSE.txt for license information
|
||||
*/
|
||||
|
||||
#ifdef __linux__
|
||||
|
||||
#include <CSystemLinux.h>
|
||||
|
||||
#endif
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <CSystemWindows.h>
|
||||
#endif
|
||||
Reference in new issue
Block a user