aedi: do not store absolute paths in object files

cmake generated makefiles pass absolute paths to compiler, -ffile-prefix-map command line option helps to avoid this issue
make target doesn't need this options because it's built in-tree
This commit is contained in:
alexey.lysiuk 2021-09-10 12:13:56 +03:00
parent 41a7f8cac3
commit e3289f88ba

View file

@ -393,6 +393,8 @@ class CMakeTarget(BuildTarget):
args = [ args = [
'cmake', 'cmake',
'-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_BUILD_TYPE=Release',
f'-DCMAKE_C_FLAGS="-ffile-prefix-map={state.source}/="',
f'-DCMAKE_CXX_FLAGS="-ffile-prefix-map={state.source}/="',
f'-DCMAKE_INSTALL_PREFIX={state.install_path}', f'-DCMAKE_INSTALL_PREFIX={state.install_path}',
f'-DCMAKE_PREFIX_PATH={state.prefix_path}', f'-DCMAKE_PREFIX_PATH={state.prefix_path}',
] ]