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

Change to support BSD sed #170

Merged
merged 1 commit into from
Sep 11, 2023
Merged

Change to support BSD sed #170

merged 1 commit into from
Sep 11, 2023

Conversation

alwin-joshy
Copy link
Contributor

@alwin-joshy alwin-joshy commented Sep 11, 2023

In GNU sed, the suffix is optional for the -i argument, but is mandatory for the BSD sed shipped with MacOS. This change checks whether the host is an Apple system and if so, supplies a suffix.

@alwin-joshy alwin-joshy force-pushed the macos_touch branch 3 times, most recently from 860234d to 688db1b Compare September 11, 2023 05:22
@alwin-joshy
Copy link
Contributor Author

The other two changes are unrelated but were required to get style checks passing.

@@ -72,6 +72,11 @@ if(LibPicotcp)
add_custom_target(get_muslc)
add_dependencies(get_muslc muslc)

set(sed_inplace_suffix "")
Copy link
Contributor

Choose a reason for hiding this comment

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

Need a comment explaining why the behaviour is needed on macOS.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, a comment here would be nice

@alwin-joshy alwin-joshy force-pushed the macos_touch branch 2 times, most recently from ed13149 to 78e59c6 Compare September 11, 2023 07:36
Signed-off-by: Alwin Joshy <[email protected]>
@lsf37 lsf37 merged commit af6b18b into seL4:master Sep 11, 2023
18 checks passed
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.

3 participants