File tree 10 files changed +15
-0
lines changed
x86_64-linux-gnu-cxx11abi
10 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ public void Setup(Driver driver)
146
146
147
147
parserOptions . UnityBuild = options . UnityBuild ;
148
148
parserOptions . EnableRTTI = options . EnableRTTI ;
149
+ parserOptions . EnableExceptions = options . EnableExceptions ;
149
150
150
151
parserOptions . Setup ( options . Platform ?? Platform . Host ) ;
151
152
Original file line number Diff line number Diff line change 1
1
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2
2
#define _LIBCPP_HIDE_FROM_ABI
3
3
#define _LIBCPP_NO_ABI_TAG
4
+ #define _LIBCPP_HAS_NO_EXCEPTIONS
4
5
5
6
#include < string>
6
7
#include < new>
Original file line number Diff line number Diff line change 1
1
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2
2
#define _LIBCPP_HIDE_FROM_ABI
3
3
#define _LIBCPP_NO_ABI_TAG
4
+ #define _LIBCPP_HAS_NO_EXCEPTIONS
4
5
5
6
#include < string>
6
7
#include < new>
Original file line number Diff line number Diff line change 1
1
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2
2
#define _LIBCPP_HIDE_FROM_ABI
3
3
#define _LIBCPP_NO_ABI_TAG
4
+ #define _LIBCPP_HAS_NO_EXCEPTIONS
4
5
5
6
#include < string>
6
7
#include < new>
Original file line number Diff line number Diff line change 1
1
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2
2
#define _LIBCPP_HIDE_FROM_ABI
3
3
#define _LIBCPP_NO_ABI_TAG
4
+ #define _LIBCPP_HAS_NO_EXCEPTIONS
4
5
5
6
#include < string>
6
7
#include < new>
Original file line number Diff line number Diff line change 1
1
#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS
2
2
#define _LIBCPP_HIDE_FROM_ABI
3
3
#define _LIBCPP_NO_ABI_TAG
4
+ #define _LIBCPP_HAS_NO_EXCEPTIONS
4
5
5
6
#include < string>
6
7
#include < new>
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ public void Setup(Driver driver)
48
48
{
49
49
var parserOptions = driver . ParserOptions ;
50
50
parserOptions . TargetTriple = Triple ;
51
+ parserOptions . EnableExceptions = false ;
51
52
52
53
var options = driver . Options ;
53
54
options . GeneratorKind = Kind ;
Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ project "Std-symbols"
51
51
language " C++"
52
52
SetupNativeProject ()
53
53
rtti " Off"
54
+ exceptionhandling " Off"
55
+
54
56
defines { " DLL_EXPORT" }
55
57
56
58
filter { " toolset:msc*" }
Original file line number Diff line number Diff line change @@ -33,6 +33,8 @@ public override void Process()
33
33
WriteLine ( "#define _LIBCPP_DISABLE_VISIBILITY_ANNOTATIONS" ) ;
34
34
WriteLine ( "#define _LIBCPP_HIDE_FROM_ABI" ) ;
35
35
WriteLine ( "#define _LIBCPP_NO_ABI_TAG" ) ;
36
+ if ( ! Context . ParserOptions . EnableExceptions )
37
+ WriteLine ( "#define _LIBCPP_HAS_NO_EXCEPTIONS" ) ;
36
38
NewLine ( ) ;
37
39
WriteLine ( "#include <string>" ) ;
38
40
}
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public ParserOptions()
84
84
TargetTriple . Contains ( "windows" ) || TargetTriple . Contains ( "msvc" ) ;
85
85
86
86
public bool EnableRTTI { get ; set ; }
87
+ public bool EnableExceptions { get ; set ; }
87
88
public LanguageVersion ? LanguageVersion { get ; set ; }
88
89
89
90
public void BuildForSourceFile (
@@ -375,6 +376,9 @@ private void SetupArguments(TargetPlatform targetPlatform)
375
376
376
377
if ( ! EnableRTTI )
377
378
AddArguments ( "-fno-rtti" ) ;
379
+
380
+ if ( EnableExceptions )
381
+ AddArguments ( "-fexceptions" ) ;
378
382
}
379
383
380
384
internal string BuiltinsDirBasePath
You can’t perform that action at this time.
0 commit comments