Skip to content

Commit

Permalink
perf(libc): remove nostdinc
Browse files Browse the repository at this point in the history
Signed-off-by: Zone.N <[email protected]>
  • Loading branch information
MRNIU committed May 17, 2023
2 parents 5f72858 + 0e64463 commit fc15cb2
Show file tree
Hide file tree
Showing 15 changed files with 2 additions and 753 deletions.
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0")
set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}")

# 通用选项
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffreestanding -nostdlib -nostdinc -fexceptions -nostartfiles -fPIC -no-pie -Wall -Wextra -MMD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffreestanding -nostdlib -nostdinc -fexceptions -nostartfiles -fPIC -no-pie -Wall -Wextra -MMD")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffreestanding -nostdlib -fexceptions -nostartfiles -fPIC -no-pie -Wall -Wextra -MMD")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffreestanding -nostdlib -fexceptions -nostartfiles -fPIC -no-pie -Wall -Wextra -MMD")
set(CMAKE_ASM_FLAGS "${CMAKE_C_FLAGS}")

# 输出相关信息
Expand Down
1 change: 0 additions & 1 deletion src/kernel/kernel_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ void kernel_main(void) {
while (1) {
;
}
assert(0);
return;
}

Expand Down
30 changes: 0 additions & 30 deletions src/libc/include/float.h

This file was deleted.

63 changes: 0 additions & 63 deletions src/libc/include/limits.h

This file was deleted.

34 changes: 0 additions & 34 deletions src/libc/include/stdarg.h

This file was deleted.

44 changes: 0 additions & 44 deletions src/libc/include/stdbool.h

This file was deleted.

63 changes: 0 additions & 63 deletions src/libc/include/stddef.h

This file was deleted.

Loading

0 comments on commit fc15cb2

Please sign in to comment.