Skip to content

Commit d661537

Browse files
committed
Clean up C++ support
Use symlinks instead of include hack to build a file as both C and C++.
1 parent a5fed86 commit d661537

File tree

8 files changed

+4
-6
lines changed

8 files changed

+4
-6
lines changed

src/util/tile/Local.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(call run-unit-test,test_cpuset)
66
ifdef FD_HAS_CXX
77
$(call add-objs,fd_tile_threads_cxx,fd_util)
88
else
9-
$(call add-objs,fd_tile_threads,fd_util)
9+
$(call add-objs,fd_tile_threads_c,fd_util)
1010
endif
1111
else
1212
$(call add-objs,fd_tile_nothreads,fd_util)

src/util/tile/fd_tile_threads.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/util/tile/fd_tile_threads_cxx.cxx

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fd_tile_threads.c

src/util/tpool/Local.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ $(call add-hdrs,fd_tpool.h fd_map_reduce.h)
22
ifdef FD_HAS_CXX
33
$(call add-objs,fd_tpool_cxx,fd_util)
44
else
5-
$(call add-objs,fd_tpool,fd_util)
5+
$(call add-objs,fd_tpool_c,fd_util)
66
endif
77
$(call make-unit-test,test_tpool,test_tpool,fd_util)
88

src/util/tpool/fd_tpool.c

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/util/tpool/fd_tpool_cxx.cxx

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/util/tpool/fd_tpool_cxx.cxx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fd_tpool.c

0 commit comments

Comments
 (0)