From 86cb50bfd2cb9f25e4aec3994c6b6f42cbc6eb7f Mon Sep 17 00:00:00 2001 From: Geod24 Date: Tue, 3 Sep 2019 01:55:21 +0900 Subject: [PATCH 1/3] Update list of supported compiler to match vibe-core --- .travis.yml | 10 +++++----- README.md | 5 +++-- appveyor.yml | 13 ++++++------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4dd2783..45f0901 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,17 +11,17 @@ d: # catching most DMD version related build failures early # latest 4 versions plus the oldest supported version should be present - dmd-2.087.1 - - dmd-2.076.1 + - dmd-2.078.3 + - ldc-1.17.0 - ldc-1.16.0 - ldc-1.15.0 - ldc-1.14.0 - - ldc-1.13.0 - - ldc-1.12.0 - - ldc-1.6.0 - - dmd-beta + - ldc-1.9.0 - dmd-2.086.1 - dmd-2.085.1 - dmd-2.084.1 + - dmd-2.079.0 + - dmd-beta env: - CONFIG=select diff --git a/README.md b/README.md index e955ba1..7ab232a 100644 --- a/README.md +++ b/README.md @@ -31,12 +31,13 @@ The following compilers are tested and supported: - DMD 2.086.1 - DMD 2.085.1 - DMD 2.084.1 -- DMD 2.076.1 +- DMD 2.079.0 +- LDC 1.17.0 - LDC 1.16.0 - LDC 1.15.0 - LDC 1.14.0 - LDC 1.13.0 -- LDC 1.6.0 +- LDC 1.9.0 Driver development status diff --git a/appveyor.yml b/appveyor.yml index 7bebf39..80be07a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,9 +30,12 @@ environment: arch: x64 config: winapi - DC: dmd - DVersion: 2.076.1 + DVersion: 2.079.0 arch: x64 config: winapi + - DC: ldc + DVersion: 1.17.0 + arch: x64 - DC: ldc DVersion: 1.16.0 arch: x64 @@ -46,11 +49,7 @@ environment: arch: x86 config: winapi - DC: ldc - DVersion: 1.13.0 - arch: x64 - config: winapi - - DC: ldc - DVersion: 1.6.0 + DVersion: 1.9.0 arch: x64 config: winapi @@ -152,4 +151,4 @@ test_script: - echo %DC% - echo %PATH% - '%DC% --version' - - dub test --arch=%Darch% --compiler=%DC% --config=%CONFIG% \ No newline at end of file + - dub test --arch=%Darch% --compiler=%DC% --config=%CONFIG% From 312f49ce652dcc0747fa2e6441858063e08bdbb3 Mon Sep 17 00:00:00 2001 From: Geod24 Date: Tue, 3 Sep 2019 02:10:02 +0900 Subject: [PATCH 2/3] Remove outdate comments for unsupported compilers --- source/eventcore/drivers/posix/sockets.d | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/eventcore/drivers/posix/sockets.d b/source/eventcore/drivers/posix/sockets.d index 0e5ac11..9d4b350 100644 --- a/source/eventcore/drivers/posix/sockets.d +++ b/source/eventcore/drivers/posix/sockets.d @@ -708,9 +708,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets } void receive(DatagramSocketFD socket, ubyte[] buffer, IOMode mode, DatagramIOCallback on_receive_finish) - @trusted { // DMD 2.072.0-b2: scope considered unsafe - import std.typecons : scoped; - + @safe { assert(mode != IOMode.all, "Only IOMode.immediate and IOMode.once allowed for datagram sockets."); sizediff_t ret; @@ -761,7 +759,7 @@ final class PosixEventDriverSockets(Loop : PosixEventLoop) : EventDriverSockets } private void onDgramRead(FD fd) - @trusted { // DMD 2.072.0-b2: scope considered unsafe + @safe { auto slot = () @trusted { return &m_loop.m_fds[fd].datagramSocket(); } (); auto socket = cast(DatagramSocketFD)fd; From 8a4dc304dd45b506022ca3f1a80289f0d9e480ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Tue, 8 Oct 2019 19:21:54 +0200 Subject: [PATCH 3/3] Fix missing build config. --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 80be07a..0ef724f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -36,6 +36,7 @@ environment: - DC: ldc DVersion: 1.17.0 arch: x64 + config: winapi - DC: ldc DVersion: 1.16.0 arch: x64