File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,10 @@ function(_get_common_compile_options output_var flags)
49
49
list (APPEND compile_options "-ffreestanding" )
50
50
endif ()
51
51
52
+ if (LIBC_COMPILER_HAS_FIXED_POINT )
53
+ list (APPEND compile_options "-ffixed-point" )
54
+ endif ()
55
+
52
56
list (APPEND compile_options "-fno-builtin" )
53
57
list (APPEND compile_options "-fno-exceptions" )
54
58
list (APPEND compile_options "-fno-lax-vector-conversions" )
Original file line number Diff line number Diff line change 1
- #include " include/llvm-libc-macross/stdfix_macros .h"
1
+ #include " include/llvm-libc-macros/stdfix-macros .h"
2
2
3
3
#ifndef LIBC_COMPILER_HAS_FIXED_POINT
4
4
#error unsupported
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ function(add_unittest_framework_library name)
31
31
if (TARGET libc.src.time.clock )
32
32
target_compile_definitions (${lib} PRIVATE TARGET_SUPPORTS_CLOCK )
33
33
endif ()
34
+ if (LIBC_COMPILER_HAS_FIXED_POINT )
35
+ target_compile_options (${lib} PUBLIC -ffixed-point )
36
+ endif ()
34
37
endforeach ()
35
38
target_include_directories (${name} .hermetic PRIVATE ${LIBC_BUILD_DIR} /include )
36
39
target_compile_options (${name} .hermetic
You can’t perform that action at this time.
0 commit comments