File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -837,6 +837,7 @@ void Serializer::writeBlockInfoBlock() {
837
837
BLOCK_RECORD (options_block, SDK_PATH);
838
838
BLOCK_RECORD (options_block, XCC);
839
839
BLOCK_RECORD (options_block, IS_SIB);
840
+ BLOCK_RECORD (options_block, IS_STATIC_LIBRARY);
840
841
BLOCK_RECORD (options_block, IS_TESTABLE);
841
842
BLOCK_RECORD (options_block, ARE_PRIVATE_IMPORTS_ENABLED);
842
843
BLOCK_RECORD (options_block, RESILIENCE_STRATEGY);
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+
3
+ // RUN: %target-swift-frontend -emit-module -o %t %s
4
+ // RUN: llvm-bcanalyzer -dump %t/static.swiftmodule | %FileCheck %s -check-prefix CHECK -check-prefix DYNAMIC
5
+
6
+ // RUN: %target-swift-frontend -static -emit-module -o %t %s
7
+ // RUN: llvm-bcanalyzer -dump %t/static.swiftmodule | %FileCheck %s -check-prefix CHECK -check-prefix STATIC
8
+
9
+ // CHECK: <MODULE_BLOCK {{.*}}>
10
+ // CHECK-STATIC: <IS_STATIC abbrevid={{[0-9]+}}/>
11
+ // CHECK-DYNAMIC-NOT: <IS_STATIC abbrevid={{[0-9]+}}/>
12
+ // CHECK: </MODULE_BLOCK>
You can’t perform that action at this time.
0 commit comments