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

misc/openlane: patch sed to be cross-platform #305

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

xobs
Copy link
Contributor

@xobs xobs commented Feb 25, 2023

sed on BSD and GNU have different behaviour when it comes to the -i flag. They behave the same when a backup file is specified, but differently when no backup is specified.

Rework all invocations in order to get this working on osx.

There is a pending upstream patch: The-OpenROAD-Project/OpenLane#1668

@@ -20,14 +20,24 @@ set -ex
UNAME_OUT="$(uname -s)"
case "${UNAME_OUT}" in
Linux*) OS=Linux;;
<<<<<<< Updated upstream
Copy link
Contributor

Choose a reason for hiding this comment

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

did you meant to commit this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did not! I didn't realize that the upstream changed to use cp rather than git. This makes the patch a bit easier, thanks.

Signed-off-by: Sean Cross <[email protected]>
Add support for klayout to build on macos. This involves some rather
egregeous hacks to the Qt build system to work around the fact that
Conda builds things using a custom Mac SDK.

Signed-off-by: Sean Cross <[email protected]>
@proppy
Copy link
Contributor

proppy commented Apr 6, 2023

@xobs sorry for dropping this, do you still want to get that in?

@xobs
Copy link
Contributor Author

xobs commented Apr 6, 2023

In the intervening time, the openlane patches were merged upstream: The-OpenROAD-Project/OpenLane@45980c8

So we can just drop dbd35f2 from the patchset.

@xobs
Copy link
Contributor Author

xobs commented Apr 6, 2023

...I've removed that patch from the patchset.

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.

2 participants