From 2f98e968331c721e9caa21379cbc5f2b6fa7775a Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Sat, 27 Feb 2016 20:49:16 -0800 Subject: [PATCH] Workaround for missing debugging symbols for System.Private.* stuff --- .../how-to-build-and-run-ilcompiler-in-visual-studio-2015.md | 4 ++-- src/ILCompiler/src/Program.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/how-to-build-and-run-ilcompiler-in-visual-studio-2015.md b/Documentation/how-to-build-and-run-ilcompiler-in-visual-studio-2015.md index 9161d07673e..76f9efd23d5 100644 --- a/Documentation/how-to-build-and-run-ilcompiler-in-visual-studio-2015.md +++ b/Documentation/how-to-build-and-run-ilcompiler-in-visual-studio-2015.md @@ -25,7 +25,7 @@ build.cmd clean - Set "desktop" project in solution explorer as your startup project - Set startup command line to: -`@c:\corert\bin\obj\Windows_NT.x64.Debug\ryujit.rsp` +`-r:C:\corert\bin\Product\Windows_NT.x64.Debug\System.Private.CoreLib.dll @c:\corert\bin\obj\Windows_NT.x64.Debug\ryujit.rsp` - Build & run using **F5** - This will run the compiler. The output is `c:\corert\src\ILCompiler\repro\obj\Debug\dnxcore50\native\repro.obj` file. @@ -48,7 +48,7 @@ build.cmd clean - Set "desktop" project in solution explorer as your startup project - Set startup command line to: -`@c:\corert\bin\obj\Windows_NT.x64.Debug\cpp.rsp` +`-r:C:\corert\bin\Product\Windows_NT.x64.Debug\System.Private.CoreLib.dll @c:\corert\bin\obj\Windows_NT.x64.Debug\cpp.rsp` - `-nolinenumbers` command line option can be used to suppress generation of line number mappings in C++ files - useful for debugging diff --git a/src/ILCompiler/src/Program.cs b/src/ILCompiler/src/Program.cs index f3e8c63b07a..9dfab729d3d 100644 --- a/src/ILCompiler/src/Program.cs +++ b/src/ILCompiler/src/Program.cs @@ -83,7 +83,7 @@ private ArgumentSyntax ParseCommandLine(string[] args) // HandleHelp writes to error, fails fast with crash dialog and lacks custom formatting. syntax.HandleHelp = false; syntax.HandleErrors = true; - + syntax.DefineOption("h|help", ref _help, "Help message for ILC"); syntax.DefineOptionList("r|reference", ref referenceFiles, "Reference file(s) for compilation"); syntax.DefineOption("o|out", ref _options.OutputFilePath, "Output file path"); @@ -100,7 +100,7 @@ private ArgumentSyntax ParseCommandLine(string[] args) Helpers.AppendExpandedPaths(_inputFilePaths, input, true); foreach (var reference in referenceFiles) - Helpers.AppendExpandedPaths(_referenceFilePaths, reference, true); + Helpers.AppendExpandedPaths(_referenceFilePaths, reference, false); return argSyntax; }