Add the build exception for tizen (gcc9) 64/221164/2
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Dec 2019 00:47:44 +0000 (09:47 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 Dec 2019 02:44:46 +0000 (11:44 +0900)
Change-Id: I1512f3d460cb6bf8cc63bf52efa91a8269d2eeb8
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
build_common/tizen/SConscript

index 44a1c13..6b48298 100644 (file)
@@ -23,6 +23,10 @@ env.AppendUnique(CCFLAGS = ['-Wextra', '-fPIC'])
 env.AppendUnique(CXXFLAGS = ['-Wextra', '-fPIC'])
 env.AppendUnique(LIBS = ['dl', 'pthread'])
 
+# # Add GCC9 exception
+env.AppendUnique(CCFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member'])
+env.AppendUnique(CXXFLAGS = ['-Wno-error=stringop-truncation', '-Wno-format-truncation', '-Wno-error=address-of-packed-member'])
+
 env.AppendUnique(CCFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2'])
 env.AppendUnique(CXXFLAGS = ['-D__TIZEN__', '-D_GNU_SOURCE', '-DTIZEN_DEBUG_ENABLE','-fstack-protector-strong','-Wl,-z,relro','-D_FORTIFY_SOURCE=2'])
 env.AppendUnique(LINKFLAGS = ['-Wl,-z,relro'])