[Tizen] Do not access crossgen if it is not needed
authorGleb Balykov <g.balykov@samsung.com>
Tue, 14 Jul 2020 15:49:49 +0000 (18:49 +0300)
committerAlexander Soldatov/AI Compiler Lab /SRR/Staff Engineer/Samsung Electronics <soldatov.a@samsung.com>
Thu, 23 Jul 2020 13:00:54 +0000 (16:00 +0300)
build-test.sh

index 6ef1447..5234e2f 100755 (executable)
@@ -150,7 +150,6 @@ generate_layout()
     build_MSBuild_projects "Tests_Overlay_Managed" "${__ProjectDir}/tests/runtest.proj" "Creating test overlay" "/t:CreateTestOverlay"
 
     chmod +x $__BinDir/corerun
-    chmod +x $__CrossgenExe
 
     # Make sure to copy over the pulled down packages
     cp -r $__BinDir/* $CORE_ROOT/ > /dev/null
@@ -167,6 +166,7 @@ generate_layout()
 
     # Precompile framework assemblies with crossgen if required
     if [ $__DoCrossgen -ne 0 ]; then
+        chmod +x $__CrossgenExe
         precompile_coreroot_fx
     fi
 }