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:
Lucy Satheesan committed 2023-08-10 16:03:21 -07:00
1 parent 1f821a8539
commit 0762f57d80
6 files changed
+7 -21

No files matched your search

+2 -3
View File
@@ -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.
-18
View File
@@ -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