File tree 2 files changed +11
-1
lines changed
llvm-project-overlay/libc/utils/MPFRWrapper
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ build --dynamic_mode=off
22
22
# based on compilation_mode.
23
23
build --strip=never
24
24
25
+ # Add layering check to all projects.
26
+ build --features=layering_check
27
+
25
28
###############################################################################
26
29
# Options to select different strategies for linking potential dependent
27
30
# libraries. The default leaves it disabled.
Original file line number Diff line number Diff line change @@ -27,6 +27,13 @@ cc_library(
27
27
name = "mpfr_wrapper" ,
28
28
srcs = ["MPFRUtils.cpp" ],
29
29
hdrs = ["MPFRUtils.h" ],
30
+ # Disable layering check when using mpfr_system.
31
+ features = select (
32
+ {
33
+ "//conditions:default" : [],
34
+ "//libc:mpfr_system" : ["-layering_check" ],
35
+ },
36
+ ),
30
37
deps = [
31
38
"//libc:__support_common" ,
32
39
"//libc:__support_cpp_bit" ,
@@ -36,9 +43,9 @@ cc_library(
36
43
"//libc:__support_fputil_fp_bits" ,
37
44
"//libc:__support_fputil_platform_defs" ,
38
45
"//libc:libc_root" ,
39
- "//libc/utils/MPFRWrapper:mpfr_impl" ,
40
46
"//libc/test/UnitTest:LibcUnitTest" ,
41
47
"//libc/test/UnitTest:fp_test_helpers" ,
48
+ "//libc/utils/MPFRWrapper:mpfr_impl" ,
42
49
"//libc/utils/testutils:libc_test_utils" ,
43
50
],
44
51
)
You can’t perform that action at this time.
0 commit comments