63746cac08
This PR refactor CUDA setup hooks, and in particular autoAddOpenGLRunpath and autoAddCudaCompatRunpathHook, that were using a lot of code in common (in fact, I introduced the latter by copy pasting most of the bash script of the former). This is not satisfying for maintenance, as a recent patch showed, because we need to duplicate changes to both hooks. This commit abstract the common part in a single shell script that applies a generic patch action to every elf file in the output. For autoAddOpenGLRunpath the action is just addOpenGLRunpath (now addDriverRunpath), and is few line function for autoAddCudaCompatRunpathHook. Doing so, we also takes the occasion to use the newer addDriverRunpath instead of the previous addOpenGLRunpath, and rename the CUDA hook to reflect that as well. Co-Authored-By: Connor Baker <connor.baker@tweag.io> |
||
---|---|---|
.. | ||
agda.section.md | ||
android.section.md | ||
beam.section.md | ||
bower.section.md | ||
chicken.section.md | ||
coq.section.md | ||
crystal.section.md | ||
cuda.section.md | ||
cuelang.section.md | ||
dart.section.md | ||
dhall.section.md | ||
dotnet.section.md | ||
emscripten.section.md | ||
gnome.section.md | ||
go.section.md | ||
haskell.section.md | ||
hy.section.md | ||
idris2.section.md | ||
idris.section.md | ||
index.md | ||
ios.section.md | ||
java.section.md | ||
javascript.section.md | ||
julia.section.md | ||
lisp.section.md | ||
lua.section.md | ||
maven.section.md | ||
nim.section.md | ||
ocaml.section.md | ||
octave.section.md | ||
perl.section.md | ||
php.section.md | ||
pkg-config.section.md | ||
python.section.md | ||
qt.section.md | ||
r.section.md | ||
ruby.section.md | ||
rust.section.md | ||
swift.section.md | ||
texlive.section.md | ||
titanium.section.md | ||
vim.section.md |