Open lawruble13 opened 1 year ago
So
PRIVATE
means its not a user facing file, and is only used internally by the library. As such, it should be installed when using asan and not asan builds.
Ah, I misunderstood what you had said in our last discussion. Should there then be a flag to force a target to be ignored in the ASAN build, in addition to this PRIVATE
flag?
Should there then be a flag to force a target to be ignored in the ASAN build, in addition to this PRIVATE flag?
No, we should just ignore everything thats not a shared object by default in ASAN builds. Then the PRIVATE
flag can install the file into lib/${PROJECT_NAME}
or lib/asan/${PROJECT_NAME}
for runtime components when ASAN is enabled.
So
PRIVATE
means its not a user facing file, and is only used internally by the library. As such, it should be installed when using asan and not asan builds. ForPRIVATE
installs it should go intolib/<project-name>/
orlib/asan/<project-name>
. This way the relative path to the file should be the same regardless if its asan or non-asan.