Skip to content
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

Don't merge: Remove includes-field #10153

Closed
wants to merge 2 commits into from
Closed

Conversation

sol
Copy link
Member

@sol sol commented Jun 26, 2024

This PR is not meant to be merged!

This PR demonstrates that includes are not used by anything. It's meant to aid the discussion of #10145 and #10147; it can be closed after.

@@ -443,8 +443,6 @@ checkBuildInfoPathsWellFormedness bi = do
mapM_
(checkPath False "hs-source-dirs" PathKindDirectory . getSymbolicPath)
(hsSourceDirs bi)
-- Possibly absolute paths.
mapM_ (checkPath True "includes" PathKindFile . getSymbolicPath) (includes bi)
Copy link
Member Author

@sol sol Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code checked that includes exist and that the paths are well-formed.

@@ -2499,7 +2499,7 @@ checkForeignDeps pkg lbi verbosity =
explainErrors missingHdr missingLibs
)
where
allHeaders = collectField (fmap getSymbolicPath . includes)
allHeaders = []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This area of the code checked that a dummy C program that includes any headers listed under includes can be compiled successfully.

@sol sol closed this Jun 30, 2024
@sol sol deleted the remove-includes-field branch June 30, 2024 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant