-
Notifications
You must be signed in to change notification settings - Fork 51
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
[WIP] conditional compilation around at_fdcwd , at_symlink_follow #76
base: master
Are you sure you want to change the base?
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 |
---|---|---|
|
@@ -22,6 +22,11 @@ extra-source-files: | |
README.md | ||
ChangeLog.md | ||
|
||
flag old-glibc | ||
description: compile with post-2016 glibc, allowing atomic file writes | ||
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. Looks like the logic is reversed here. This flag seems to enable the old glibc. |
||
default: False | ||
manual: False | ||
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. This should be |
||
|
||
library | ||
exposed-modules: | ||
UnliftIO | ||
|
@@ -85,6 +90,8 @@ library | |
c-sources: | ||
cbits/file-posix.c | ||
cbits/time-posix.c | ||
if flag(old-glibc) | ||
cpp-options: -DOLD_GLIBC | ||
default-language: Haskell2010 | ||
|
||
test-suite unliftio-spec | ||
|
@@ -151,3 +158,4 @@ benchmark conc-bench | |
build-depends: | ||
unix | ||
default-language: Haskell2010 | ||
|
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.
It would be nice to have some kind of a changelog entry explaining this change and what the impact of enabling the flag would be.