]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/AutoGen/GenMake.py
BaseTools: Fix the Windows GCC Build Failure with too long path
[mirror_edk2.git] / BaseTools / Source / Python / AutoGen / GenMake.py
index c8c5fc53860d7f6c35371a0b0565bbd624d3005d..51c5238fd17ebf89a655e0f5a3977318d8d7c013 100644 (file)
@@ -768,7 +768,11 @@ cleanlib:
                                     break\r
                             else:\r
                                 break\r
-                        RespDict[Key] = Value\r
+\r
+                        if self._AutoGenObject.ToolChainFamily == 'GCC':\r
+                            RespDict[Key] = Value.replace('\\', '/')\r
+                        else:\r
+                            RespDict[Key] = Value\r
                         for Target in BuildTargets:\r
                             for i, SingleCommand in enumerate(BuildTargets[Target].Commands):\r
                                 if FlagDict[Flag]['Macro'] in SingleCommand:\r