Skip to content

ccache with argument + support f90cache#1844

Merged
boegel merged 18 commits intoeasybuilders:developfrom
Caylo:ccache
Aug 10, 2016
Merged

ccache with argument + support f90cache#1844
boegel merged 18 commits intoeasybuilders:developfrom
Caylo:ccache

Conversation

@Caylo
Copy link
Copy Markdown
Contributor

@Caylo Caylo commented Jul 13, 2016

(ref #1841 )

@boegel boegel added this to the v2.9.0 milestone Jul 13, 2016
Comment thread easybuild/tools/options.py Outdated
None, 'store', None),
'update-modules-tool-cache': ("Update modules tool cache file(s) after generating module file",
None, 'store_true', False),
'use-compiler-cache': ("Enable use of ccache to speed up compilation", str, 'store', False),
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also mention f90cache in description

@boegel
Copy link
Copy Markdown
Member

boegel commented Jul 13, 2016

@Caylo make this WIP in the PR title since this doesn't cover f90cache yet?

@Caylo Caylo changed the title change command to --use-compiler-cache with argument change command to --use-compiler-cache with argument (WIP) Jul 13, 2016
@Caylo Caylo changed the title change command to --use-compiler-cache with argument (WIP) ccache with argument + support f90cache Jul 13, 2016
Comment thread easybuild/tools/toolchain/toolchain.py Outdated

_log = fancylogger.getLogger('tools.toolchain', fname=False)

CCAHCE = 'ccache'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: CCACHE :)

Comment thread easybuild/tools/toolchain/toolchain.py Outdated
for comp in links[1]:
comp_s = os.path.join(tmpdir, comp)
if not os.path.exists(comp_s):
os.symlink(links[0], comp_s)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Caylo please wrap this in a try/except:

try:
    os.symlink(...)
except OSError as err:
    raise EasyBuildError("Failed to symlink %s to %s: %s", links[0], comp_s, err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants