Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 6d9bfba

Browse files
committed
[packages,ClangCommon] Fixes #317. Clang does not support the gnu++03 language standard
1 parent 0969648 commit 6d9bfba

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

Changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
17-Apr-2017 Fixes #318. Default macOS deployment version is now 10.6 (was the current SDK). Setting this as old as possible for maximum backward compatibility. The default can be overridden by implementing the interface Bam.Core.IPackageMetaDataConfigure<Clang.MetaData>. See the Cxx11Test1 example.
44

5-
15-Apr-2017 Fixes #317. Added all missing current C++ standards to C.Cxx.ELanguageStandards enumeration. Added are Cxx03, GnuCxx03, GnuCxx11, Cxx14, GnuCxx14.
5+
15-Apr-2017 Fixes #317. Added all missing current C++ standards to C.Cxx.ELanguageStandards enumeration. Added are Cxx03, GnuCxx03 (not supported by Clang), GnuCxx11, Cxx14, GnuCxx14.
66

77
07-Apr-2017 ======== Version 1.1.0 ========
88

packages/ClangCommon/bam/Scripts/CompilerSettings/CommandLine/C/ICxxOnlyCompilerSettings.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ public static void
8181
break;
8282

8383
case C.Cxx.ELanguageStandard.GnuCxx03:
84-
commandLine.Add("-std=gnu++03");
85-
break;
84+
throw new Bam.Core.Exception("Clang does not support the language standard gnu++03");
8685

8786
case C.Cxx.ELanguageStandard.Cxx11:
8887
commandLine.Add("-std=c++11");

packages/ClangCommon/bam/Scripts/CompilerSettings/Xcode/C/ICxxOnlyCompilerSettings.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ public static void
7676
break;
7777

7878
case C.Cxx.ELanguageStandard.GnuCxx03:
79-
standard = new XcodeBuilder.UniqueConfigurationValue("gnu++03");
80-
break;
79+
throw new Bam.Core.Exception("Clang does not support the language standard gnu++03");
8180

8281
case C.Cxx.ELanguageStandard.Cxx11:
8382
standard = new XcodeBuilder.UniqueConfigurationValue("c++11");

0 commit comments

Comments
 (0)