* Is it possible to inject compiler arguments and library dependencies from the build system? @ 2022-05-31 21:42 Pedro Falcato 2022-06-02 2:37 ` 回复: [edk2-devel] " gaoliming 0 siblings, 1 reply; 2+ messages in thread From: Pedro Falcato @ 2022-05-31 21:42 UTC (permalink / raw) To: edk2-devel-groups-io [-- Attachment #1: Type: text/plain, Size: 360 bytes --] Hi all, Following https://edk2.groups.io/g/devel/message/89684, I want to add sanitizer support to upstream EDK2. Doing this in a non-intrusive way would mean that I need to force all modules to depend on the UBSAN/ASAN implementation lib and force them to use a specific compile flag. Is there a way to do this using the current build system? Thanks, Pedro [-- Attachment #2: Type: text/html, Size: 606 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
* 回复: [edk2-devel] Is it possible to inject compiler arguments and library dependencies from the build system? 2022-05-31 21:42 Is it possible to inject compiler arguments and library dependencies from the build system? Pedro Falcato @ 2022-06-02 2:37 ` gaoliming 0 siblings, 0 replies; 2+ messages in thread From: gaoliming @ 2022-06-02 2:37 UTC (permalink / raw) To: devel, pedro.falcato [-- Attachment #1: Type: text/plain, Size: 936 bytes --] Pedro: For the specific platform, you can add the compiler flag into [BuildOptions] in Platform.dsc file, and add NULL|xxxLib.inf into [LibraryClasses] section in Platform.dsc file so that this library is linked to every module. Thanks Liming 发件人: devel@edk2.groups.io <devel@edk2.groups.io> 代表 Pedro Falcato 发送时间: 2022年6月1日 5:43 收件人: edk2-devel-groups-io <devel@edk2.groups.io> 主题: [edk2-devel] Is it possible to inject compiler arguments and library dependencies from the build system? Hi all, Following https://edk2.groups.io/g/devel/message/89684, I want to add sanitizer support to upstream EDK2. Doing this in a non-intrusive way would mean that I need to force all modules to depend on the UBSAN/ASAN implementation lib and force them to use a specific compile flag. Is there a way to do this using the current build system? Thanks, Pedro [-- Attachment #2: Type: text/html, Size: 4757 bytes --] ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-06-02 2:37 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-05-31 21:42 Is it possible to inject compiler arguments and library dependencies from the build system? Pedro Falcato 2022-06-02 2:37 ` 回复: [edk2-devel] " gaoliming
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox