diff options
Diffstat (limited to 'src/tools/mac/upload_system_symbols/testdata')
-rw-r--r-- | src/tools/mac/upload_system_symbols/testdata/Makefile | 22 | ||||
-rw-r--r-- | src/tools/mac/upload_system_symbols/testdata/archtest.c | 7 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/tools/mac/upload_system_symbols/testdata/Makefile b/src/tools/mac/upload_system_symbols/testdata/Makefile new file mode 100644 index 00000000..cb481a3c --- /dev/null +++ b/src/tools/mac/upload_system_symbols/testdata/Makefile @@ -0,0 +1,22 @@ +all: libarchtest.dylib archtest.exe + +archtest32.exe: archtest.c + clang -m32 $< -o $@ + +archtest64.exe: archtest.c + clang -m64 $< -o $@ + +archtest.exe: archtest32.exe archtest64.exe + lipo $^ -create -output $@ + +libarchtest32.dylib: archtest.c + clang -m32 -dynamiclib $< -o $@ + +libarchtest64.dylib: archtest.c + clang -m64 -dynamiclib $< -o $@ + +libarchtest.dylib: libarchtest32.dylib libarchtest64.dylib + lipo $^ -create -output $@ + +clean: + rm -f *.dylib *.exe diff --git a/src/tools/mac/upload_system_symbols/testdata/archtest.c b/src/tools/mac/upload_system_symbols/testdata/archtest.c new file mode 100644 index 00000000..0931fca1 --- /dev/null +++ b/src/tools/mac/upload_system_symbols/testdata/archtest.c @@ -0,0 +1,7 @@ +int TestLibUsefulFunction() { + return 42; +} + +int main() { + return 0; +} |