Skip to content

Commit

Permalink
Merge pull request #69 from ToolmanP/fix-capatibility
Browse files Browse the repository at this point in the history
fix: fix darwin/aarch64 compatibility issue
  • Loading branch information
ToolmanP authored Dec 11, 2024
2 parents 18b64e0 + 33594c5 commit 4af5b0d
Show file tree
Hide file tree
Showing 78 changed files with 30 additions and 1,482 deletions.
2 changes: 1 addition & 1 deletion Lab3/user/chcore-libc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ add_custom_target(libc-build ALL
# Install libc as usual
add_custom_target(libc-install ALL
WORKING_DIRECTORY ${_libc_target_dir}
COMMAND make install
COMMAND make -j1 install
DEPENDS libc-build)

# clean target
Expand Down
6 changes: 3 additions & 3 deletions Lab3/user/chcore-libc/libchcore/porting/overrides/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,11 @@ CC_CMD = $(CC) $(CFLAGS_ALL) -c -o $@ $<
ifeq ($(ADD_CFI),yes)
AS_CMD = LC_ALL=C awk -f $(srcdir)/tools/add-cfi.common.awk -f $(srcdir)/tools/add-cfi.$(ARCH).awk $< | $(CC) $(CFLAGS_ALL) -x assembler -c -o $@ -
else
AS_CMD = $(CC_CMD)
AS_CMD = $(CC) $(CFLAGS_ALL) -x assembler-with-cpp -c -o $@ $<
endif

obj/%.o: $(srcdir)/%.s
$(AS_CMD)
($(AS_CMD) 2> /dev/null) || $(CC_CMD)

obj/%.o: $(srcdir)/%.S
$(CC_CMD)
Expand All @@ -164,7 +164,7 @@ obj/%.o: $(srcdir)/%.c $(GENH) $(IMPH)
$(CC_CMD)

obj/%.lo: $(srcdir)/%.s
$(AS_CMD)
($(AS_CMD) 2> /dev/null) || $(CC_CMD)

obj/%.lo: $(srcdir)/%.S
$(CC_CMD)
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
# PURPOSE.
# See the Mulan PSL v2 for more details.

target_sources(libchcore-porting-symbols PRIVATE __unmapself.S)
target_sources(libchcore-porting-symbols PRIVATE __unmapself.s)
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 4af5b0d

Please sign in to comment.