Skip to content

Commit 5f16c4e

Browse files
committed
Add CI warning if GCC linked dlls found
A user using robolectric for windows will need to have GCC installed This isn't ideal, but I wasn't able to find the correct linker documentation to disable this behavior Related: #46
1 parent 670568d commit 5f16c4e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/scripts/check_robolectric_assets.sh

+10
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ then
1919
echo "Error: Expected 1 .dll file"
2020
exit 1
2121
fi
22+
23+
# list the libraries
24+
objdump --private-headers rsdroid.dll | grep "DLL Name:"
25+
26+
objdump --private-headers rsdroid.dll | grep "DLL Name:" | grep "libgcc"
27+
hasGcc=$?
28+
if [ "$hasGcc" -eq 0 ]
29+
then
30+
echo "[WARN]: libgcc module found. Users will need to install GCC on Windows (#46)"
31+
fi

0 commit comments

Comments
 (0)