So, without `ROOTFS_DIR`:
- ben@ubuntu ~/git/coreclr/ $ ./build.sh arm debug verbose cross -rebuild
+ ben@ubuntu ~/git/coreclr/ $ ./build.sh arm debug verbose cross
And with:
- ben@ubuntu ~/git/coreclr/ $ ROOTFS_DIR=/home/ben/coreclr-cross/arm ./build.sh arm debug verbose cross -rebuild
+ ben@ubuntu ~/git/coreclr/ $ ROOTFS_DIR=/home/ben/coreclr-cross/arm ./build.sh arm debug verbose cross
As usual the resulting binaries will be found in `bin/Product/BuildOS.BuildArch.BuildType/`
To build System.Private.CoreLib for Linux, run the following command:
```
- lgs@ubuntu ~/git/coreclr/ $ build.sh arm debug verbose -rebuild
+ lgs@ubuntu ~/git/coreclr/ $ build.sh arm debug verbose
```
The output is at bin/Product/<BuildOS>.arm.Debug/System.Private.CoreLib.dll.
* -skiptests - don't build the tests. This can shorten build times quite a bit, but means you can't run tests.
* -release - build the 'Release' build type that does not have extra development-time checking compiled in.
- * -rebuild - force the build not to be incremental but to recompile everything.
You want this if you are going to do performance testing on your build.
See [Using Your Build](../workflow/UsingYourBuild.md) for instructions on running code with your build.
if /i "%1" == "-priority" (set __Priority=%2&shift&set processedArgs=!processedArgs! %1=%2&shift&goto Arg_Loop)
+REM Explicitly block -Rebuild.
+if /i "%1" == "Rebuild" (
+ echo "ERROR: 'Rebuild' is not supported. Please remove it."
+ goto Usage
+)
+if /i "%1" == "-Rebuild" (
+ echo "ERROR: 'Rebuild' is not supported. Please remove it."
+ goto Usage
+)
+
+
REM All arguments after this point will be passed through directly to build.cmd on nested invocations
REM using the "all" argument, and must be added to the __PassThroughArgs variable.
if [!__PassThroughArgs!]==[] (
echo -disableoss: Disable Open Source Signing for System.Private.CoreLib.
echo -priority=^<N^> : specify a set of test that will be built and run, with priority N.
echo -officialbuildid=^<ID^>: specify the official build ID to be used by this build.
-echo -Rebuild: passes /t:rebuild to the build projects.
echo -crossgenaltjit ^<JIT dll^>: run crossgen using specified altjit ^(used for JIT testing^).
echo portable : build for portable RID.
echo.
echo "-skiprestore: skip restoring packages ^(default: packages are restored during build^)."
echo "-disableoss: Disable Open Source Signing for System.Private.CoreLib."
echo "-officialbuildid=^<ID^>: specify the official build ID to be used by this build."
- echo "-Rebuild: passes /t:rebuild to the build projects."
echo "-stripSymbols - Optional argument to strip native symbols during the build."
echo "-skipgenerateversion - disable version generation even if MSBuild is supported."
echo "-ignorewarnings - do not treat warnings as errors"
exit 1
fi
;;
+ rebuild|-rebuild)
+ echo "ERROR: 'Rebuild' is not supported. Please remove it."
+ exit 1
+ ;;
*)
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
"values": [ "false", "true"],
"defaultValue": "true"
},
- "Rebuild": {
- "description": "Specifies rebuild target.",
- "valueType": "target",
- "values": [],
- "defaultValue": ""
- },
"MsBuildLog": {
"description": "Specifies build logs for build alias.",
"valueType": "passThrough",
fi
#Cross building for emulator rootfs
- ROOTFS_DIR="$__ARMEmulRootfs" CPLUS_INCLUDE_PATH=$LINUX_ARM_INCPATH CXXFLAGS=$LINUX_ARM_CXXFLAGS ./build.sh $__buildArch cross $__verboseFlag $__skipMscorlib clang3.5 $__buildConfig -rebuild
+ ROOTFS_DIR="$__ARMEmulRootfs" CPLUS_INCLUDE_PATH=$LINUX_ARM_INCPATH CXXFLAGS=$LINUX_ARM_CXXFLAGS ./build.sh $__buildArch cross $__verboseFlag $__skipMscorlib clang3.5 $__buildConfig
#Reset the code to the upstream version
(set +x; echo 'Rewinding HEAD to master code')