VirtualBox

Changeset 106804 in vbox


Ignore:
Timestamp:
Oct 31, 2024 1:13:45 AM (5 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
165702
Message:

tools/envSub.vbs: Visual C++ selection update, now adding Llvm's bin dir when present. jiraref:VBP-1253

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/envSub.vbs

    r106793 r106804  
    302302      next
    303303
    304       ' Add VCC to the end of the path.
     304      ' Add VCC and Llvm to the end of the path.
    305305      dim str2, strDir2, arrVccOldBinDirs
    306306      arrVccOldBinDirs = Array("\bin\" & strHostArch & "_" & strTargetArch, "\bin\" & strTargetArch, "\bin")
    307307      bldExitLoop = false
    308       for each str1 in Array("amd64", "x86")
    309          for each strDir in GetSubdirsStartingWithRVerSorted(strPathDevTools & "\win." & str1 & "\vcc", "v")
    310             strDir = strPathDevTools & "\win." & str1 & "\vcc\" & strDir
     308      for each str1 in Array("", ".amd64", ".x86")
     309         for each strDir in GetSubdirsStartingWithRVerSorted(strPathDevTools & "\win" & str1 & "\vcc", "v")
     310            strDir = strPathDevTools & "\win" & str1 & "\vcc\" & strDir
    311311            if DirExists(strDir & "\Tools\MSVC") then
    312312               for each strDir2 in GetSubdirsStartingWithRVerSorted(strDir & "\Tools\MSVC", "1")
     
    322322                  end if
    323323               next
     324               if bldExitLoop and DirExists(strDir & "\Tools\Llvm\") then
     325                  if strHostArch = "x86" then
     326                     strDir2 = strDir & "\Tools\Llvm\bin"
     327                  else
     328                     strDir2 = strDir & "\Tools\Llvm\" & XlateArchitectureToWin(strHostArch) & "\bin"
     329                  end if
     330                  if DirExists(strDir2) then
     331                     EnvAppendPathItem "Path", DosSlashes(strDir2), ";"
     332                  end if
     333               end if
    324334            elseif DirExists(strDir & "\bin") then
    325335               for each str2 in arrVccOldBinDirs
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette