Skip to content

Commit 9f3b420

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Keep _FORTIFY_SOURCE=2 for libvulkan when enabling _FORTIFY_SOURCE=3 globally" into main
2 parents 3987d12 + 65014f9 commit 9f3b420

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

vulkan/libvulkan/Android.bp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ cc_library_shared {
5959
"-fstandalone-debug",
6060

6161
//"-DLOG_NDEBUG=0",
62+
63+
// Keep -D_FORTIFY_SOURCE=2 in libvulkan.
64+
// See b/291762537
65+
"-U_FORTIFY_SOURCE",
66+
"-D_FORTIFY_SOURCE=2",
6267
],
6368

6469
cppflags: [

0 commit comments

Comments
 (0)