From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by mx.groups.io with SMTP id smtpd.web10.2200.1654137477107256288 for ; Wed, 01 Jun 2022 19:37:57 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: byosoft.com.cn, ip: 58.240.74.242, mailfrom: gaoliming@byosoft.com.cn) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 02 Jun 2022 10:37:32 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming" To: , References: In-Reply-To: Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gSXMgaXQgcG9zc2libGUgdG8gaW5qZWN0IGNvbXBpbGVyIGFyZ3VtZW50cyBhbmQgbGlicmFyeSBkZXBlbmRlbmNpZXMgZnJvbSB0aGUgYnVpbGQgc3lzdGVtPw==?= Date: Thu, 2 Jun 2022 10:37:34 +0800 Message-ID: <00eb01d87629$b72595a0$2570c0e0$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQF7izmkVQ8sFkrwIgyOc2e8EE8ISK31OtVg Content-Type: multipart/alternative; boundary="----=_NextPart_000_00EC_01D8766C.C54971E0" Content-Language: zh-cn ------=_NextPart_000_00EC_01D8766C.C54971E0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Pedro: For the specific platform, you can add the compiler flag into [BuildOption= s] in Platform.dsc file, and add NULL|xxxLib.inf into [LibraryClasses] sect= ion in Platform.dsc file so that this library is linked to every module.=20 =20 Thanks Liming =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io = =E4=BB=A3=E8=A1=A8 Pedro Falcato =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2022=E5=B9=B46=E6=9C=881=E6=97=A5 5:4= 3 =E6=94=B6=E4=BB=B6=E4=BA=BA: edk2-devel-groups-io =E4=B8=BB=E9=A2=98: [edk2-devel] Is it possible to inject compiler argument= s and library dependencies from the build system? =20 Hi all, =20 Following https://edk2.groups.io/g/devel/message/89684, I want to add sanit= izer 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 implementatio= n lib and force them to use a specific compile flag. Is there a way to do t= his using the current build system? =20 Thanks, Pedro ------=_NextPart_000_00EC_01D8766C.C54971E0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Pedro:

=C2=A0= For the specific platform, you can add the compiler flag into [BuildOptions= ] in Platform.dsc file, and add NULL|xxxLib.inf into [LibraryClasses] secti= on in Platform.dsc file so that this library is linked to every module.

 

Thanks

Limi= ng

=E5=8F=91=E4=BB= =B6=E4=BA=BA: devel@edk2.groups.io = <devel@edk2.groups.io> =E4=BB=A3=E8=A1=A8 Pedro Falcato=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:= 2022=E5=B9=B46=E6=9C=881=E6=97=A5 5:43
=E6=94=B6=E4=BB=B6=E4=BA= =BA: edk2-devel-groups-io = <devel@edk2.groups.io>
=E4=B8=BB=E9=A2=98: [edk2-devel] Is it possible to inject c= ompiler arguments and library dependencies from the build system?

 

Hi all,

 

Following https://edk2.groups.io/g/devel/message/89684, I want to add saniti= zer 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 th= is using the current build system?

 

Thanks,

Pedro

<= /div>

------=_NextPart_000_00EC_01D8766C.C54971E0--