回复: [edk2-devel] Is it possible to inject compiler arguments and library dependencies from the build system?

gaoliming gaoliming at byosoft.com.cn
Thu Jun 2 02:37:34 UTC 2022


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 at edk2.groups.io <devel at edk2.groups.io> 代表 Pedro Falcato
发送时间: 2022年6月1日 5:43
收件人: edk2-devel-groups-io <devel at 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





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#90133): https://edk2.groups.io/g/devel/message/90133
Mute This Topic: https://groups.io/mt/91492254/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20220602/1dee2f1b/attachment.htm>


More information about the edk2-devel-archive mailing list