diff options
author | Daniel Neus <[email protected]> | 2016-02-19 21:23:51 +0100 |
---|---|---|
committer | Daniel Neus <[email protected]> | 2016-02-19 21:23:51 +0100 |
commit | 90c90a93cae2f1d540ebb82f131b25fd956991e1 (patch) | |
tree | 5e207e2777bc3d17aa3f74d9745a49f827a80acb | |
parent | 0c76098cbaa8002fb89756d6fa2b02359f3f5f88 (diff) |
Use symlinks on windows if explicitly requested
-rwxr-xr-x | configure.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/configure.py b/configure.py index 5edd45f02..818a35ec8 100755 --- a/configure.py +++ b/configure.py @@ -1560,15 +1560,21 @@ Choose the link method based on system availablity and user request """ def choose_link_method(options): + req = options.link_method + def useable_methods(): + # Symbolic link support on Windows was introduced in Windows 6.0 (Vista) and Python 3.2 + # Furthermore the SeCreateSymbolicLinkPrivilege is required in order to successfully create symlinks + # So only use try to use symlinks on Windows if explicitly requested + if req == 'symlink' and options.os == 'windows': + yield 'symlink' + # otherwise keep old conservative behavior if 'symlink' in os.__dict__ and options.os != 'windows': yield 'symlink' if 'link' in os.__dict__: yield 'hardlink' yield 'copy' - req = options.link_method - for method in useable_methods(): if req is None or req == method: logging.info('Using %s to link files into build dir ' \ |