Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
bb558927
Commit
bb558927
authored
Dec 06, 2019
by
Praetorius, Simon
Browse files
Merge branch 'feature/ccache' into 'master'
Optimize compile builds using ccache and gold linker See merge request
!122
parents
a885b730
70c955a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/modules/AmdisMacros.cmake
View file @
bb558927
include
(
AmdisCXXFeatures
)
include
(
AddAmdisExecutable
)
# some optimization of the compile times
find_program
(
CCACHE_PROGRAM ccache
)
if
(
CCACHE_PROGRAM
)
set
(
CMAKE_CXX_COMPILER_LAUNCHER
"
${
CCACHE_PROGRAM
}
"
)
endif
()
if
(
UNIX AND NOT APPLE
)
execute_process
(
COMMAND
${
CMAKE_C_COMPILER
}
-fuse-ld=gold -Wl,--version ERROR_QUIET OUTPUT_VARIABLE ld_version
)
if
(
"
${
ld_version
}
"
MATCHES
"GNU gold"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
-fuse-ld=gold -Wl,--disable-new-dtags"
)
set
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-fuse-ld=gold -Wl,--disable-new-dtags"
)
endif
()
endif
()
if
(
NOT BACKEND
)
set
(
BACKEND
"ISTL"
CACHE STRING
"LinearAlgebra backend. One of MTL, EIGEN, PETSC, ISTL"
)
set_property
(
CACHE BACKEND PROPERTY STRINGS
"MTL"
"EIGEN"
"ISTL"
"PETSC"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment