Restore Qspectre flag (#23060)
Restore a removed Qspectre flag and update comment
### Motivation and Context
Adjustment for PR
f5293d253c
This commit is contained in:
Родитель
708ee8556e
Коммит
b14b4ec703
|
@ -1559,6 +1559,9 @@ def generate_build_tree(
|
|||
# The "/profile" flag implies "/DEBUG:FULL /DEBUGTYPE:cv,fixup /OPT:REF /OPT:NOICF /INCREMENTAL:NO /FIXED:NO". We set it for satisfying a Microsoft internal compliance requirement. External users
|
||||
# do not need to have it.
|
||||
ldflags = ["/profile", "/DYNAMICBASE"]
|
||||
# Address Sanitizer libs do not have a Qspectre version. So they two cannot be both enabled.
|
||||
if not args.enable_address_sanitizer:
|
||||
cflags += ["/Qspectre"]
|
||||
if config == "Release":
|
||||
cflags += ["/O2", "/Ob2", "/DNDEBUG"]
|
||||
elif config == "RelWithDebInfo":
|
||||
|
|
Загрузка…
Ссылка в новой задаче