OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 static_library("fusl") { | 5 static_library("fusl") { |
6 configs = [] | 6 configs = [] |
7 | 7 |
8 cflags = [ | 8 cflags = [ |
9 # Flags from musl | 9 # Flags from musl |
10 "-std=c99", | 10 "-std=c99", |
11 "-ffreestanding", | 11 "-ffreestanding", |
12 "-nostdinc", | 12 "-nostdinc", |
13 | 13 |
14 "-D_XOPEN_SOURCE=700", | 14 "-D_XOPEN_SOURCE=700", |
15 | 15 |
16 "-Wa,--noexecstack", | 16 "-Wa,--noexecstack", |
17 | 17 |
18 "-fomit-frame-pointer", | 18 "-fomit-frame-pointer", |
19 "-fno-unwind-tables", | 19 "-fno-unwind-tables", |
20 "-fno-asynchronous-unwind-tables", | 20 "-fno-asynchronous-unwind-tables", |
21 "-ffunction-sections", | 21 "-ffunction-sections", |
22 "-fdata-sections", | 22 "-fdata-sections", |
23 "-Werror=implicit-function-declaration", | 23 "-Werror=implicit-function-declaration", |
24 "-Werror=implicit-int", | 24 "-Werror=implicit-int", |
25 "-Werror=pointer-sign", | 25 "-Werror=pointer-sign", |
26 "-Werror=pointer-arith", | 26 "-Werror=pointer-arith", |
27 | 27 |
28 # Silent builds. | 28 # Silent builds. |
29 "-Wno-ignored-attributes", | |
30 "-Wno-string-plus-int", | 29 "-Wno-string-plus-int", |
31 "-Wno-tautological-compare", | 30 "-Wno-tautological-compare", |
32 ] | 31 ] |
33 | 32 |
34 # Arch specific includes. | 33 # Arch specific includes. |
35 include_dirs = [ "arch/x86_64" ] | 34 include_dirs = [ "arch/x86_64" ] |
36 | 35 |
37 # General includes. | 36 # General includes. |
38 include_dirs += [ | 37 include_dirs += [ |
39 "src/internal", | 38 "src/internal", |
(...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 "src/signal/x86_64/sigsetjmp.s", | 1372 "src/signal/x86_64/sigsetjmp.s", |
1374 "src/string/x86_64/memcpy.s", | 1373 "src/string/x86_64/memcpy.s", |
1375 "src/string/x86_64/memmove.s", | 1374 "src/string/x86_64/memmove.s", |
1376 "src/string/x86_64/memset.s", | 1375 "src/string/x86_64/memset.s", |
1377 "src/thread/x86_64/__set_thread_area.s", | 1376 "src/thread/x86_64/__set_thread_area.s", |
1378 "src/thread/x86_64/__unmapself.s", | 1377 "src/thread/x86_64/__unmapself.s", |
1379 "src/thread/x86_64/clone.s", | 1378 "src/thread/x86_64/clone.s", |
1380 "src/thread/x86_64/syscall_cp.s", | 1379 "src/thread/x86_64/syscall_cp.s", |
1381 ] | 1380 ] |
1382 } | 1381 } |
OLD | NEW |