Skip to content

Commit abc6af1

Browse files
committed
build: add proper search path for Windows
The Windows includes are under `win32` at least with the Oracle JDK. This is required to be able to build on Windows.
1 parent 79237aa commit abc6af1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Package.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ let javaIncludePath = "\(javaHome)/include"
3535
let javaPlatformIncludePath = "\(javaIncludePath)/linux"
3636
#elseif os(macOS)
3737
let javaPlatformIncludePath = "\(javaIncludePath)/darwin"
38-
#else
39-
// TODO: Handle windows as well
40-
#error("Currently only macOS and Linux platforms are supported, this may change in the future.")
38+
#elseif os(Windows)
39+
let javaPlatformIncludePath = "\(javaIncludePath)/win32"
4140
#endif
4241

4342
let package = Package(

0 commit comments

Comments
 (0)