Skip to content

Latest commit

 

History

History
65 lines (36 loc) · 2.02 KB

File metadata and controls

65 lines (36 loc) · 2.02 KB

Installing compilers

Prerequisites

  • Python 3.9 or higher
  • Run make ce first
  • The ce and ce_install scripts are in the bin directory, you can either set the PATH, make links or call bin/ce / bin/ce_install in the given examples below

On Linux

The directory /opt/compiler-explorer is required, otherwise you'll have to supply your own destination directory and temporary staging directory to ce_install using --staging-dir "/some/tmp/dir" --dest "/my/ce/dir"

Listing available compilers/tools

ce_install list or ce_install --enable nightly list

Filter to a specific language/type:

ce_install list 'compilers/c++/x86/gcc'

Show only compilers that are already installed locally:

ce_install list 'compilers/c++/x86/gcc' --installed-only

Show the compiler IDs used in CE properties files (needed for use_compiler in library configs):

ce_install list 'compilers/c++/x86/gcc' --show-compiler-ids

Listing installation paths

To see where compilers/tools would be installed without actually installing them:

ce_install list-paths <filter>

Examples:

  • ce_install list-paths 'libraries/c++/fmt' - Show all fmt library version paths
  • ce_install list-paths --absolute 'libraries/c++/fmt 10.2.1' - Show absolute path for specific version
  • ce_install list-paths --json 'compilers/c++' - Output all C++ compiler paths in JSON format

For versioned compilers/tools

ce_install install <name>

For a specific version

ce_install install '<compilername> <version>'

For nightlies:

ce_install --enable nightly install <name>

On Windows

You can install a small amount of Windows compilers using ce_install.ps1, a regular powershell installation should be enough

./ce_install.ps1 --staging-dir "D:/tmp/staging" --dest "D:/efs/compilers" --enable windows install windows

On CE infrastructure

IMPORTANT no sudo; ensure --force-traditional

ce_install --force-traditional --staging-dir /efs/winshared/staging --dest /efs/winshared/compilers --enable windows install windows

ce smb sync