Add symlinks for plat-specific compiler names

Python defaults to the compiler that was used to compile python,
which winds up being the platform specific compiler name. Add
symlinks for these to allow python compilation of extensions
to actually find ccache.

Change-Id: I84fd75c72adaa0a1277a20f680ad23688611e43d
This commit is contained in:
Monty Taylor 2014-06-29 10:17:02 -07:00
parent ef2f8ed32b
commit d789889ad1
1 changed files with 24 additions and 0 deletions

View File

@ -164,6 +164,30 @@ class jenkins::slave(
require => Package['ccache'],
}
file { "/usr/local/bin/${::hardwareisa}-linux-gnu-gcc":
ensure => link,
target => '/usr/bin/ccache',
require => Package['ccache'],
}
file { "/usr/local/bin/${::hardwareisa}-linux-gnu-g++":
ensure => link,
target => '/usr/bin/ccache',
require => Package['ccache'],
}
file { "/usr/local/bin/${::hardwareisa}-linux-gnu-cc":
ensure => link,
target => '/usr/bin/ccache',
require => Package['ccache'],
}
file { "/usr/local/bin/${::hardwareisa}-linux-gnu-c++":
ensure => link,
target => '/usr/bin/ccache',
require => Package['ccache'],
}
file { '/usr/local/jenkins':
ensure => directory,
owner => 'root',