New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NetBSD support #1247
NetBSD support #1247
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,6 +83,7 @@ else() | |
endif() | ||
file(GLOB_RECURSE CORE_D_UNIX ${RUNTIME_DIR}/src/core/sys/posix/*.d) | ||
file(GLOB_RECURSE CORE_D_FREEBSD ${RUNTIME_DIR}/src/core/sys/freebsd/*.d) | ||
file(GLOB_RECURSE CORE_D_NETBSD ${RUNTIME_DIR}/src/core/sys/netbsd/*.d) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you planning on adding any NetBSD-specific declarations to this druntime directory? If not, better to leave this out until you need it. Are you able to get ldc passing the druntime/phobos tests with only this patch to ldc? If not, you might want to get that working first, then finish this ldc PR after you're sure it's working. |
||
file(GLOB_RECURSE CORE_D_LINUX ${RUNTIME_DIR}/src/core/sys/linux/*.d) | ||
file(GLOB_RECURSE CORE_D_OSX ${RUNTIME_DIR}/src/core/sys/osx/*.d) | ||
file(GLOB_RECURSE CORE_D_SOLARIS ${RUNTIME_DIR}/src/core/sys/solaris/*.d) | ||
|
@@ -94,6 +95,9 @@ if(UNIX) | |
if(${CMAKE_SYSTEM} MATCHES "FreeBSD") | ||
list(APPEND CORE_D_SYS ${CORE_D_FREEBSD}) | ||
endif() | ||
if(${CMAKE_SYSTEM} MATCHES "NetBSD") | ||
list(APPEND CORE_D_SYS ${CORE_D_NETBSD}) | ||
endif() | ||
if(${CMAKE_SYSTEM} MATCHES "Linux") | ||
list(APPEND CORE_D_SYS ${CORE_D_LINUX}) | ||
endif() | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can merge this case with the FreeBSD case above.