Skip to content

Commit

Permalink
Order libgc .c files lexicographically in cmake and automake scripts
Browse files Browse the repository at this point in the history
(refactoring)

PR #598 (bdwgc).

* CMakeLists.txt (SRC): Order items lexicographically.
* Makefile.am [!SINGLE_GC_OBJ] (libgc_la_SOURCES): Likewise.
  • Loading branch information
plajjan authored and ivmai committed Dec 21, 2023
1 parent 499206c commit eed7950
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ endif()

include_directories(include)

set(SRC alloc.c reclaim.c allchblk.c misc.c mach_dep.c os_dep.c
mark_rts.c headers.c mark.c obj_map.c blacklst.c finalize.c
new_hblk.c dbg_mlc.c malloc.c dyn_load.c typd_mlc.c ptr_chck.c
mallocx.c)
set(SRC allchblk.c alloc.c blacklst.c dbg_mlc.c dyn_load.c finalize.c
headers.c mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c
new_hblk.c obj_map.c os_dep.c ptr_chck.c reclaim.c typd_mlc.c)

set(NODIST_SRC)
set(ATOMIC_OPS_LIBS)
set(ATOMIC_OPS_LIBS_CMAKE)
Expand Down
7 changes: 3 additions & 4 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,9 @@ else

EXTRA_DIST += extra/gc.c
libgc_la_SOURCES = \
allchblk.c alloc.c blacklst.c dbg_mlc.c \
dyn_load.c finalize.c gc_dlopen.c headers.c \
mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c \
obj_map.c os_dep.c ptr_chck.c reclaim.c specific.c typd_mlc.c
allchblk.c alloc.c blacklst.c dbg_mlc.c dyn_load.c finalize.c gc_dlopen.c \
headers.c mach_dep.c malloc.c mallocx.c mark.c mark_rts.c misc.c \
new_hblk.c obj_map.c os_dep.c ptr_chck.c reclaim.c specific.c typd_mlc.c

# C Library: Architecture Dependent
# ---------------------------------
Expand Down

0 comments on commit eed7950

Please sign in to comment.