I want to hide machine specific path part from executable.
Is it possible to force relative path for PDB symbols and __FILE__
macro?
So that some/all initial parts of path are not put into file?
I use MSVC, GCC solutions will not work.
All options are following:
/permissive- /MP /GS /Zc:rvalueCast /analyze- /W3 /Zc:wchar_t /I"
<some path here>" /Qspectre-load /ZI /Gm- /Od /sdl /Fd"<some path here>"
/Zc:inline /fp:precise /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D
"_UNICODE" /D "UNICODE" /errorReport:prompt /WX- /Zc:forScope /RTC1
/GR- /Gd /Oy- /MTd /openmp- /Fa"<some path here>" /EHa /nologo
/Fo"<some path here>" /Fp"<some path here>" /diagnostics:classic
__FILE__
?,__FILE__
macro shows full path, C++__FILE__
macro with absolute path – Somato/PDBALTPATH:%_PDB%
to hide the absolute path to the PDB file in the executable. See https://mcmap.net/q/517703/-remove-pdb-references-from-released-file – Unaccomplished