Skip to content

Commit b16e887

Browse files
committed
address review comments
1 parent ac93afb commit b16e887

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

test/cmake/whole_archive/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ cmake_minimum_required(VERSION 3.24)
22

33
project(whole)
44

5-
add_library(whole_lib STATIC lib.cpp)
6-
add_executable(whole main.cpp)
5+
add_library(whole_lib STATIC lib.c)
6+
add_executable(whole main.c)
77
target_link_libraries(whole $<LINK_LIBRARY:WHOLE_ARCHIVE,whole_lib>)

test/cmake/whole_archive/lib.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <stdio.h>
2+
3+
__attribute__((constructor)) void init(void) {
4+
printf("init\n");
5+
}

test/cmake/whole_archive/lib.cpp

Lines changed: 0 additions & 6 deletions
This file was deleted.

test/cmake/whole_archive/main.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <stdio.h>
2+
3+
int main() {
4+
printf("main\n");
5+
}

test/cmake/whole_archive/main.cpp

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)