Closed tommedema closed 1 year ago
This is because the sed
command has different syntax on MacOS vs Unix.
On MacOS the -i ''
seems to be required where on Unix it should not be present for the command to work.
I went ahead and changed -i ''
to -i
in the makefile, which resolves the issue.
Seems like there are two options to make this cross-OS compatible:
sed -i.bak 's/foo/bar/' file && rm file.bak
I did indeed only consider macos for this. Thanks for the notification and suggestions. I added a few lines to the makefile to detect the OS to solve it. At one point I should look into adding autoconf or something similar to deal with all the platform dependent constraints :-)
I removed the sed
command and included changing this one line in the Python script that generates all the files. This way there is no platform dependent code anymore.
Recently I started getting this on an ARM machine:
It errors out: