From f165aa5e68be3280afda09488fa3a8ecd1d89572 Mon Sep 17 00:00:00 2001 From: Senthil Date: Thu, 25 Feb 2016 18:12:00 -0800 Subject: [PATCH] Add cpp compiler flags --- src/dotnet/commands/dotnet-build/CompileContext.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/dotnet/commands/dotnet-build/CompileContext.cs b/src/dotnet/commands/dotnet-build/CompileContext.cs index e66a08fd6..7e0e43957 100644 --- a/src/dotnet/commands/dotnet-build/CompileContext.cs +++ b/src/dotnet/commands/dotnet-build/CompileContext.cs @@ -357,6 +357,12 @@ namespace Microsoft.DotNet.Tools.Build args.Add("--cpp"); } + if (!string.IsNullOrWhiteSpace(_args.CppCompilerFlagsValue)) + { + args.Add("--cppcompilerflags"); + args.Add(_args.CppCompilerFlagsValue); + } + if (!string.IsNullOrWhiteSpace(_args.ArchValue)) { args.Add("--arch");