public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <pedro.falcato@gmail.com>
Subject: 回复: [edk2-devel] Is it possible to inject compiler arguments and library dependencies from the build system?
Date: Thu, 2 Jun 2022 10:37:34 +0800	[thread overview]
Message-ID: <00eb01d87629$b72595a0$2570c0e0$@byosoft.com.cn> (raw)
In-Reply-To: <CAKbZUD1dJQu+zUSXEt6KSgjqyZib9tL2xypL6_2dtqbyynOdqg@mail.gmail.com>

[-- 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 --]

      reply	other threads:[~2022-06-02  2:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='00eb01d87629$b72595a0$2570c0e0$@byosoft.com.cn' \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox