From 8b6248bc6bfe9a696a8426a4b795d60d7c7f0179 Mon Sep 17 00:00:00 2001 From: binaryfz Date: Tue, 12 Jan 2021 15:41:16 +0800 Subject: [PATCH] fix mrt compile issue in Debug mode --- src/mrt/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mrt/BUILD.gn b/src/mrt/BUILD.gn index dcb433b883..0fc08ec7d8 100644 --- a/src/mrt/BUILD.gn +++ b/src/mrt/BUILD.gn @@ -29,6 +29,7 @@ config("mrt_c_flags") { cflags_c += [ "-O2", "-fno-strict-aliasing", + "-D_FORTIFY_SOURCE=2", ] } else if (GN_BUILD_TYPE == "DEBUG") { cflags_c += [ @@ -51,7 +52,6 @@ config("mrt_c_flags") { "-std=c99", "-fPIC", "-fstack-protector-strong", - "-D_FORTIFY_SOURCE=2", "-fno-common", "-pipe", "-Wextra", @@ -99,6 +99,7 @@ config("mrt_cxx_flags") { cflags_cc += [ "-O2", "-fno-strict-aliasing", + "-D_FORTIFY_SOURCE=2", ] } else if (GN_BUILD_TYPE == "DEBUG") { cflags_cc += [ @@ -120,7 +121,6 @@ config("mrt_cxx_flags") { "-Werror", "-fPIC", "-fstack-protector-strong", - "-D_FORTIFY_SOURCE=2", "-fno-common", "-pipe", "-Wextra", -- Gitee