mbedtls: cmake function link_to_source
should not hard-link on Windows (IDFGH-8033)
#9540
Labels
Resolution: Duplicate
This issue or pull request already exists
Status: Done
Issue is done internally
Environment
git describe --tags
to find it):v5.1-dev-63-gd622bcfd46
xtensa-esp32-elf-gcc --version
to find it): 11.2.0Problem Description
Compilation of esp-idf fails if the project is on a different drive than the esp-idf itself. This is because the function
link_to_source
tries to create a hard-link on Windows (symlinks require Administrator privileges) and this doesn't work across filesystem boundaries (see Debug Logs).This function already existed before esp-idf-v5.0 but was not used in the relevant code path.
Expected Behavior
Compilation should succeed.
Actual Behavior
Compilation fails.
Steps to reproduce
Solution
The function should copy the files on Windows:
Diff of `esp-idf/components/mbedtls/mbedtls/CMakeLists.txt`
Debug Logs
Build output
Hopefully, this is the right location for this issue.
The text was updated successfully, but these errors were encountered: