зеркало из https://github.com/github/codeql.git
C#: Add `csharp-compiler-settings` files
This commit is contained in:
Родитель
5548524a39
Коммит
0754abc03f
|
@ -0,0 +1,7 @@
|
|||
**/mcs.exe:
|
||||
**/csc.exe:
|
||||
invoke ${env.SEMMLE_PLATFORM_TOOLS}/csharp/Semmle.Extraction.CSharp.Driver
|
||||
prepend --cil
|
||||
**/bin/mono*:
|
||||
**/dotnet:
|
||||
invoke ${odasa_tools}/extract-csharp.sh
|
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
echo extract-csharp.sh: Called with arguments: "$@"
|
||||
|
||||
extractor=$SEMMLE_PLATFORM_TOOLS/csharp/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" --cil $@
|
||||
fi
|
||||
done
|
||||
|
||||
echo extract-csharp.sh: Not a compiler invocation
|
|
@ -0,0 +1,9 @@
|
|||
**\fakes*.exe:
|
||||
**\moles*.exe:
|
||||
order compiler
|
||||
trace no
|
||||
**\csc*.exe:
|
||||
invoke ${env.SEMMLE_PLATFORM_TOOLS}\csharp\Semmle.Extraction.CSharp.Driver.exe
|
||||
prepend --compiler
|
||||
prepend "${compiler}"
|
||||
prepend --cil
|
Загрузка…
Ссылка в новой задаче