This is an archive of the discontinued LLVM Phabricator instance.

[gn build] Move -fno-builtin to crt_code
ClosedPublic

Authored by aeubanks on Jan 26 2022, 3:08 PM.

Details

Summary

crt_code seems to correspond to SANITIZER_COMMON_CFLAGS which contains -fno-builtin.

Diff Detail

Event Timeline

aeubanks requested review of this revision.Jan 26 2022, 3:08 PM
aeubanks created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 26 2022, 3:08 PM
thakis accepted this revision.Jan 26 2022, 6:02 PM

Thanks!

This revision is now accepted and ready to land.Jan 26 2022, 6:02 PM

I guess crt_code is maybe also used by lib/buildins (?) So maybe crt_code doesn't correspond to SANITIZER_COMMON_CFLAGS since it's (maybe) also used for non-sanitizer compiler-rt things. Didn't check, maybe do a quick check of that before committing :)

I guess crt_code is maybe also used by lib/buildins (?) So maybe crt_code doesn't correspond to SANITIZER_COMMON_CFLAGS since it's (maybe) also used for non-sanitizer compiler-rt things. Didn't check, maybe do a quick check of that before committing :)

crt_code isn't used in compiler-rt/lib/builtins, that specifies its own -fno-builtin/-fPIC.

This revision was landed with ongoing or failed builds.Jan 26 2022, 6:34 PM
This revision was automatically updated to reflect the committed changes.