Skip to content

Commit

Permalink
Restore Qspectre flag (#23060)
Browse files Browse the repository at this point in the history
Restore a removed Qspectre flag and update comment

### Motivation and Context
Adjustment for PR
f5293d2
  • Loading branch information
A-Satti authored Dec 10, 2024
1 parent 708ee85 commit b14b4ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/ci_build/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit b14b4ec

Please sign in to comment.