mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
17 lines
411 B
Bash
Executable File
17 lines
411 B
Bash
Executable File
#!/bin/bash
|
|
echo extract-csharp.sh: Called with arguments: "$@"
|
|
|
|
extractor="$CODEQL_EXTRACTOR_CSHARP_ROOT/tools/$CODEQL_PLATFORM/Semmle.Extraction.CSharp.Driver"
|
|
|
|
for i in "$@"
|
|
do
|
|
shift
|
|
if [[ `basename -- "$i"` =~ csc.exe|mcs.exe|csc.dll ]]
|
|
then
|
|
echo extract-csharp.sh: exec $extractor --cil $@
|
|
exec "$extractor" --compiler $i --cil $@
|
|
fi
|
|
done
|
|
|
|
echo extract-csharp.sh: Not a compiler invocation
|