1import("//build/test.gni") 2 3ohos_executable("main") { 4 subsystem_name = "musl" 5 part_name = "libc-test" 6 7 sources = [ "main.c" ] 8 9 configs = [ ":config_main" ] 10 11 output_name = "main" 12} 13 14config("config_main") { 15 include_dirs = [ 16 ".", 17 "//third_party/musl/libc-test/src/common", 18 ] 19 20 cflags_c = [ 21 "-pipe", 22 "-std=c99", 23 "-D_POSIX_C_SOURCE=200809L", 24 "-Wall", 25 "-Wno-unused-function", 26 "-Wno-missing-braces", 27 "-Wno-unused", 28 "-Wno-overflow", 29 "-Wno-unknown-pragmas", 30 "-Wno-unsupported-floating-point-opt", 31 "-fno-builtin", 32 "-frounding-math", 33 "-Werror=implicit-function-declaration", 34 "-Werror=implicit-int", 35 "-Werror=pointer-sign", 36 "-Werror=pointer-arith", 37 "-g", 38 "-D_FILE_OFFSET_BITS=64", 39 "-pedantic-errors", 40 "-Werror", 41 "-Wno-unused", 42 "-D_XOPEN_SOURCE=700", 43 "-c", 44 "-o", 45 ] 46 47 ldflags = [ 48 "-g", 49 "-nostdlib", 50 ] 51} 52