m-labs / misoc

The original high performance and small footprint system-on-chip based on Migen™
https://m-labs.hk
Other
305 stars 85 forks source link

Usage of symlinks on Windows is not convenient #35

Closed enjoy-digital closed 8 years ago

enjoy-digital commented 8 years ago

On windows, we need to run the console as administrator to use symlinks which is very un-convenient. Can I change this: https://github.com/m-labs/misoc/blob/master/misoc/integration/builder.py#L110 with this:

if sys.platform == "win32":
    # using symlinks on Windows is not convenient (console
    # needs to be run as administrator), copy Makefile instead.
    shutil.copy(src, dst)
else:
    os.symlink(src, dst)
jordens commented 8 years ago

Can't you just make -C dst_dir -f src_dir/Makefile?

enjoy-digital commented 8 years ago

Indeed this seems to work, thanks! (I'll validate that on Windows and Linux in the next days and will commit it)

enjoy-digital commented 8 years ago

fixed via https://github.com/m-labs/misoc/commit/74a55257bef8767b5c9908dab0b073b728b9945c