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 # Flags we add to get build working | 28 # Flags we add to get build working |
29 "-Wno-bitwise-op-parentheses", | 29 "-Wno-bitwise-op-parentheses", |
30 "-Wno-logical-op-parentheses", | |
31 | 30 |
32 # Silent builds. | 31 # Silent builds. |
33 "-Wno-ignored-attributes", | 32 "-Wno-ignored-attributes", |
34 "-Wno-string-plus-int", | 33 "-Wno-string-plus-int", |
35 "-Wno-tautological-compare", | 34 "-Wno-tautological-compare", |
36 "-Wno-unknown-pragmas", | 35 "-Wno-unknown-pragmas", |
37 ] | 36 ] |
38 | 37 |
39 # Arch specific includes. | 38 # Arch specific includes. |
40 include_dirs = [ "arch/x86_64" ] | 39 include_dirs = [ "arch/x86_64" ] |
(...skipping 1337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1378 "//fusl/src/signal/x86_64/sigsetjmp.s", | 1377 "//fusl/src/signal/x86_64/sigsetjmp.s", |
1379 "//fusl/src/string/x86_64/memcpy.s", | 1378 "//fusl/src/string/x86_64/memcpy.s", |
1380 "//fusl/src/string/x86_64/memmove.s", | 1379 "//fusl/src/string/x86_64/memmove.s", |
1381 "//fusl/src/string/x86_64/memset.s", | 1380 "//fusl/src/string/x86_64/memset.s", |
1382 "//fusl/src/thread/x86_64/__set_thread_area.s", | 1381 "//fusl/src/thread/x86_64/__set_thread_area.s", |
1383 "//fusl/src/thread/x86_64/__unmapself.s", | 1382 "//fusl/src/thread/x86_64/__unmapself.s", |
1384 "//fusl/src/thread/x86_64/clone.s", | 1383 "//fusl/src/thread/x86_64/clone.s", |
1385 "//fusl/src/thread/x86_64/syscall_cp.s", | 1384 "//fusl/src/thread/x86_64/syscall_cp.s", |
1386 ] | 1385 ] |
1387 } | 1386 } |
OLD | NEW |