diff options
author | Florian de Gaulejac <florian.degaulejac@stilla.fr> | 2024-01-11 11:27:49 +0100 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2024-01-12 11:20:04 +0000 |
commit | b4246a5c28472de3c4b6a85a3daf4a1d578894ab (patch) | |
tree | cf1af82a0258ca6a21751f4c18fa14ea29ffe3df /src/tools | |
parent | 6d005b7c570f2ad25cf2b88329a2f99ab20b8787 (diff) |
syncqt: always use absolute path in the generated headers
The relative path + source path can be tool long for windows
Fixes: QTBUG-120758
Pick-to: 6.5 6.6 6.7
Change-Id: I42ed4f3bbf39d31bf37a5bc76eb18f473661346b
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/syncqt/main.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 38ef61ef26..bcbb5d4b40 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -889,12 +889,7 @@ public: bool headerFileExists = std::filesystem::exists(headerFile); - std::filesystem::path headerFileRootName = - std::filesystem::weakly_canonical(headerFile, ec).root_name(); - std::string aliasedFilepath = !ec && headerFileRootName == m_outputRootName - ? std::filesystem::relative(headerFile, outputDir).generic_string() - : headerFile.generic_string(); - ec.clear(); + std::string aliasedFilepath = headerFile.generic_string(); std::string aliasPath = outputDir + '/' + m_currentFilename; |