Skip to content

Commit 287ff70

Browse files
committed
Remove hacks from libc
1 parent 5017fe0 commit 287ff70

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/cmake/modules/LLVMLibCLibraryRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function(add_bitcode_entrypoint_library target_name base_target_name)
113113

114114
add_executable(${target_name} ${objects})
115115
target_link_options(${target_name} PRIVATE
116-
"-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm" "-march= ")
116+
"-r" "-nostdlib" "-flto" "-Wl,--lto-emit-llvm")
117117
endfunction(add_bitcode_entrypoint_library)
118118

119119
# A rule to build a library from a collection of entrypoint objects.

libc/startup/gpu/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function(add_startup_object name)
3434
RUNTIME_OUTPUT_DIRECTORY ${LIBC_LIBRARY_DIR}
3535
RUNTIME_OUTPUT_NAME ${name}.o)
3636
target_link_options(${fq_target_name}.exe PRIVATE
37-
"-nostdlib" "-flto" "-Wl,--lto-emit-llvm" "-march= ")
37+
"-nostdlib" "-flto" "-Wl,--lto-emit-llvm")
3838
endif()
3939
endfunction()
4040

0 commit comments

Comments
 (0)