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

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmcs/tools/mkbundle/mkbundle.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/mcs/tools/mkbundle/mkbundle.cs b/mcs/tools/mkbundle/mkbundle.cs
index 9f75c85749a..2382d37d43d 100755
--- a/mcs/tools/mkbundle/mkbundle.cs
+++ b/mcs/tools/mkbundle/mkbundle.cs
@@ -292,7 +292,16 @@ class MakeBundle {
if (cross_target == "default")
runtime = null;
else {
- var truntime = Path.Combine (targets_dir, cross_target, "mono");
+ string truntime;
+ if (runtime != null)
+ truntime = runtime;
+ else {
+ if (cross_target == null){
+ Console.Error.WriteLine ("you should specify either a --runtime or a --cross compilation target");
+ Environment.Exit (1);
+ }
+ truntime = Path.Combine (targets_dir, cross_target, "mono");
+ }
if (!File.Exists (truntime)){
Console.Error.WriteLine ($"The runtime for the {cross_target} does not exist, use --fetch-target {cross_target} to download first");
return 1;