This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

For DS-5, How to select the toolchain, whether select_toolchain.bat support input parameter?

Hi All,

For DS-5, I want to select the toolchain by script automatically. whether select_toolchain.bat support  to take parameter directly? 

like select_toolchain.bat 1

Thanks!

  • Hi fnjcr

    Sorry, select_toolchain.bat was not designed to accept a parameter directly, but it is possible to create a script based on it that performs what you want to do.

    Create a .bat file containing:

    @echo off
    for /f "delims=" %%a in ('..\sw\tcm\get_toolchain_path.bat "%~1"') do set TC_PATH=%%a
    set PATH=%TC_PATH%;%PATH%

    Then you can invoke this bat file from the DS-5 Command Prompt with a parameter, e.g.

    set_toolchain.bat "Arm Compiler 6 (DS-5 built-in)"

    Hope this helps