mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-11-24 15:21:06 +01:00
17 lines
529 B
Bash
17 lines
529 B
Bash
|
local _wrksrc="$wrksrc${build_wrksrc:+/$build_wrksrc}"
|
||
|
case "$build_style" in
|
||
|
cmake)
|
||
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
||
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${cmake_builddir:-build}=."
|
||
|
;;
|
||
|
meson)
|
||
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
||
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc/${meson_builddir:-build}=."
|
||
|
;;
|
||
|
*)
|
||
|
CFLAGS="${CFLAGS} -ffile-prefix-map=$_wrksrc=."
|
||
|
CXXFLAGS="${CXXFLAGS} -ffile-prefix-map=$_wrksrc=."
|
||
|
esac
|
||
|
|
||
|
unset _wrksrc
|