From 7a0f9a714f4c9b96001a4e6ee6a207df3a465ac5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=B5=9C=EC=A2=85=ED=97=8C/Common=20Platform=20Lab=28SR=29?= =?utf8?q?/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 9 Feb 2022 14:17:20 +0900 Subject: [PATCH] inputbubbleref option should be used with inputbubble option (#377) Change-Id: I4bb3a5063b8dcbfbd06ce3fbc3ae333aac9e13d3 --- NativeLauncher/tool/dotnettool.cc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/NativeLauncher/tool/dotnettool.cc b/NativeLauncher/tool/dotnettool.cc index 6697960..e05076c 100644 --- a/NativeLauncher/tool/dotnettool.cc +++ b/NativeLauncher/tool/dotnettool.cc @@ -57,12 +57,12 @@ void DisplayUsage() { "Options:\n" " --ibc-dir - Specify a directory containing IBC files\n" " --verbose - Display verbose information\n" - " --inputbubble - Use inputbubble (run with --crossgen2 option)\n" - " --inputbubbleref - Path of references for inputbubble\n" + " --inputbubble - Use inputbubble\n" + " --inputbubbleref - Path of references for inputbubble (used with --inputbubble option)\n" " (If not set, all references are included to inputbubble.)\n" " --ref - Path of references\n" " (If not set, default system paths are used.)\n" - " --no-pipeline - Compile the dlls individually (run with --crossgen2 option)\n" + " --no-pipeline - Compile the dlls individually\n" " --print-cmd - Print command and options\n" "\n" "Usage: dotnettool [options] [command] [arguments]\n" @@ -182,6 +182,12 @@ int main(int argc, char* argv[]) } } + if (opt->flags & NI_FLAGS_INPUT_BUBBLE_REF && !(opt->flags & NI_FLAGS_INPUT_BUBBLE)) { + _SERR("--inputbubbleref option should be used with --inputbubble option"); + DisplayUsage(); + return -1; + } + if (initNICommon() != NI_ERROR_NONE) { return -1; } -- 2.7.4