From 372bb5f32ff99e400fb7e6aaf53ac4c8cf0cd084 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 15 May 2020 17:01:56 -0700 Subject: [PATCH] Fix for pdb warning on release builds --- BeefRT/BeefRT.vcxproj | 8 ++++---- IDE/src/BuildContext.bf | 7 ++++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/BeefRT/BeefRT.vcxproj b/BeefRT/BeefRT.vcxproj index d054e99f..e8316723 100644 --- a/BeefRT/BeefRT.vcxproj +++ b/BeefRT/BeefRT.vcxproj @@ -565,7 +565,7 @@ MultiThreadedDebugDLL stdcpp17 false - OldStyle + ProgramDatabase Windows @@ -589,7 +589,7 @@ MultiThreadedDebug stdcpp17 false - OldStyle + ProgramDatabase Windows @@ -706,7 +706,7 @@ false false stdcpp17 - OldStyle + ProgramDatabase Windows @@ -732,7 +732,7 @@ false false stdcpp17 - OldStyle + ProgramDatabase Windows diff --git a/IDE/src/BuildContext.bf b/IDE/src/BuildContext.bf index 5e93c7b3..6d022a73 100644 --- a/IDE/src/BuildContext.bf +++ b/IDE/src/BuildContext.bf @@ -945,7 +945,12 @@ namespace IDE IDEUtils.AppendWithOptionalQuotes(linkLine, ltoPath); } } - + + if (options.mBuildOptions.mBeefLibType != .DynamicDebug) + { + linkLine.Append(" /ignore:4099"); + } + var runCmd = gApp.QueueRun(linkerPath, linkLine, gApp.mInstallDir, .UTF16WithBom); runCmd.mOnlyIfNotFailed = true; var tagetCompletedCmd = new IDEApp.TargetCompletedCmd(project);