Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ellis <matell@microsoft.com>2017-04-14 01:59:05 +0300
committerMatt Ellis <matell@microsoft.com>2017-04-14 03:20:00 +0300
commit48c9a5b8b110c3564eb927b01946bab849932d35 (patch)
tree9d575ebf606b1583e57d117f95dd09f730b94ca5 /Tools-Override
parent3dae32a30508fe405a4fa619feff526d3ba793ee (diff)
Don't crossgen existing .ni images
Trying to crossgen existing ni files (e.g. mscorlib.ni.dll) causes errors to be displayed to the console for example: ``` Error compiling /mnt/resource/j/workspace/dotnet_corefx/master/centos7.1_debug_prtest/Tools/mscorlib.ni.dll: The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) Error: compilation failed for "/mnt/resource/j/workspace/dotnet_corefx/master/centos7.1_debug_prtest/Tools/mscorlib.ni.dll" (0x80070020) Unable to successfully compile /mnt/resource/j/workspace/dotnet_corefx/master/centos7.1_debug_prtest/Tools/mscorlib.ni.dll ``` Simply skip *.ni.[dll|exe] when crossgening.
Diffstat (limited to 'Tools-Override')
-rwxr-xr-xTools-Override/crossgen.sh16
1 files changed, 9 insertions, 7 deletions
diff --git a/Tools-Override/crossgen.sh b/Tools-Override/crossgen.sh
index ed81eefe19..c9aee7fcd4 100755
--- a/Tools-Override/crossgen.sh
+++ b/Tools-Override/crossgen.sh
@@ -53,13 +53,15 @@ crossgen_everything()
crossgen_single()
{
__file=$1
- $__crossgen /Platform_Assemblies_Paths $__sharedFxDir:$__toolsDir /nologo /MissingDependenciesOK /ReadyToRun $__file > /dev/null
- if [ $? -eq 0 ]; then
- __outname="${__file/.dll/.ni.dll}"
- __outname="${__outname/.exe/.ni.exe}"
- echo "$__file -> $__outname"
- else
- echo "Unable to successfully compile $__file"
+ if [[ $__file != *.ni.dll && $__file != *.ni.exe ]]; then
+ $__crossgen /Platform_Assemblies_Paths $__sharedFxDir:$__toolsDir /nologo /MissingDependenciesOK /ReadyToRun $__file > /dev/null
+ if [ $? -eq 0 ]; then
+ __outname="${__file/.dll/.ni.dll}"
+ __outname="${__outname/.exe/.ni.exe}"
+ echo "$__file -> $__outname"
+ else
+ echo "Unable to successfully compile $__file"
+ fi
fi
}