File tree 4 files changed +105
-39
lines changed
4 files changed +105
-39
lines changed Original file line number Diff line number Diff line change @@ -129,9 +129,13 @@ let package = Package(
129
129
/// The `makeOptions` utility (for importing option definitions).
130
130
. executableTarget(
131
131
name: " makeOptions " ,
132
- dependencies: [ ] ) ,
132
+ dependencies: [ ] ,
133
+ // Do not enforce checks for LLVM's ABI-breaking build settings.
134
+ // makeOptions runtime uses some header-only code from LLVM's ADT classes,
135
+ // but we do not want to link libSupport into the executable.
136
+ cxxSettings: [ . unsafeFlags( [ " -DLLVM_DISABLE_ABI_BREAKING_CHECKS_ENFORCING=1 " ] ) ] ) ,
133
137
] ,
134
- cxxLanguageStandard: . cxx14
138
+ cxxLanguageStandard: . cxx17
135
139
)
136
140
137
141
if ProcessInfo . processInfo. environment [ " SWIFT_DRIVER_LLBUILD_FWK " ] == nil {
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ $ apt-get install libncurses-dev
156
156
be found, e.g.:
157
157
158
158
```
159
- $ swift build -Xcc -I/path/to/build/Ninja-ReleaseAssert /swift-.../include --product makeOptions
159
+ $ swift build -Xcc -Xcc - I/path/to/build/Ninja-Release /swift-.../include -Xcc -I/path/to/build/Ninja-Release/llvm-.../include -Xcc -I/path/to/source/llvm-project/llvm /include --product makeOptions
160
160
```
161
161
162
162
Then, run ` makeOptions ` and redirect the output to overwrite ` Options.swift ` :
You can’t perform that action at this time.
0 commit comments