Skip to content

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.

(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.

)
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