Convert( this C.ICxxOnlyLinkerSettings settings, Bam.Core.StringArray commandLine) { switch (settings.StandardLibrary) { case C.Cxx.EStandardLibrary.NotSet: break; case C.Cxx.EStandardLibrary.libstdcxx: commandLine.Add("-stdlib=libstdc++"); break; case C.Cxx.EStandardLibrary.libcxx: commandLine.Add("-stdlib=libc++"); break; default: throw new Bam.Core.Exception("Invalid C++ standard library {0}", settings.StandardLibrary.ToString()); } }
Convert( this C.ICxxOnlyLinkerSettings settings, Bam.Core.Module module, XcodeBuilder.Configuration configuration) { switch (settings.StandardLibrary) { case C.Cxx.EStandardLibrary.NotSet: break; case C.Cxx.EStandardLibrary.libstdcxx: configuration["CLANG_CXX_LIBRARY"] = new XcodeBuilder.UniqueConfigurationValue("libstdc++"); break; case C.Cxx.EStandardLibrary.libcxx: configuration["CLANG_CXX_LIBRARY"] = new XcodeBuilder.UniqueConfigurationValue("libc++"); break; default: throw new Bam.Core.Exception("Invalid C++ standard library {0}", settings.StandardLibrary.ToString()); } }
Defaults( this C.ICxxOnlyLinkerSettings settings, Bam.Core.Module module) { settings.StandardLibrary = C.Cxx.EStandardLibrary.NotSet; }