File tree Expand file tree Collapse file tree 6 files changed +55
-0
lines changed Expand file tree Collapse file tree 6 files changed +55
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,15 @@ add_compile_options(
78
78
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-concurrency-module-import>"
79
79
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-implicit-string-processing-module-import>" )
80
80
81
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
82
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
83
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
84
+ #
85
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
86
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
87
+ # a compromise, treat all linker warnings as errors.
88
+ add_link_options ($< $< PLATFORM_ID:Windows> :LINKER:/WX> )
89
+
81
90
add_compile_definitions (
82
91
$< $< BOOL:${SwiftOverlay_ENABLE_BACKDEPLOYMENT_SUPPORT} > :SWIFT_STDLIB_SUPPORT_BACK_DEPLOYMENT> )
83
92
Original file line number Diff line number Diff line change @@ -78,6 +78,17 @@ add_compile_options(
78
78
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -target-min-inlining-version -Xfrontend min>"
79
79
$< $< AND:$< BOOL:${${PROJECT_NAME} _ENABLE_LIBRARY_EVOLUTION}> ,$< COMPILE_LANGUAGE:Swift> > :-enable-library-evolution> )
80
80
81
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
82
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
83
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
84
+ #
85
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
86
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
87
+ # a compromise, treat all linker warnings as errors.
88
+ # FIXME(#83444) - enable this once we fix DLL storage for
89
+ # `_fatalErrorForwardModeDifferentiationDisabled`
90
+ # add_link_options($<$<PLATFORM_ID:Windows>:LINKER:/WX>)
91
+
81
92
if (SwiftDifferentiation_ENABLE_VECTOR_TYPES )
82
93
gyb_expand (SIMDDifferentiation.swift.gyb SIMDDifferentiation.swift )
83
94
endif ()
Original file line number Diff line number Diff line change @@ -90,6 +90,14 @@ add_compile_options(
90
90
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_LIBRARY_EVOLUTION}>,$<COMPILE_LANGUAGE:Swift>>:-enable-library-evolution>"
91
91
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_PRESPECIALIZATION}>,$<COMPILE_LANGUAGE:Swift>>:SHELL:-Xfrontend -prespecialize-generic-metadata>" )
92
92
93
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
94
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
95
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
96
+ #
97
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
98
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
99
+ # a compromise, treat all linker warnings as errors.
100
+ add_link_options ($< $< PLATFORM_ID:Windows> :LINKER:/WX> )
93
101
94
102
add_library (swiftDistributed
95
103
DistributedActor.cpp
Original file line number Diff line number Diff line change @@ -75,6 +75,15 @@ add_compile_options(
75
75
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_LIBRARY_EVOLUTION}>,$<COMPILE_LANGUAGE:Swift>>:-enable-library-evolution>"
76
76
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_PRESPECIALIZATION}>,$<COMPILE_LANGUAGE:Swift>>:SHELL:-Xfrontend -prespecialize-generic-metadata>" )
77
77
78
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
79
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
80
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
81
+ #
82
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
83
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
84
+ # a compromise, treat all linker warnings as errors.
85
+ add_link_options ($< $< PLATFORM_ID:Windows> :LINKER:/WX> )
86
+
78
87
add_library (swiftObservation
79
88
Sources /Observation/Locking.swift
80
89
Sources /Observation/Observable.swift
Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ add_compile_options(
57
57
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_LIBRARY_EVOLUTION}>,$<COMPILE_LANGUAGE:Swift>>:-enable-library-evolution>"
58
58
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_PRESPECIALIZATION}>,$<COMPILE_LANGUAGE:Swift>>:SHELL:-Xfrontend -prespecialize-generic-metadata>" )
59
59
60
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
61
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
62
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
63
+ #
64
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
65
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
66
+ # a compromise, treat all linker warnings as errors.
67
+ add_link_options ($< $< PLATFORM_ID:Windows> :LINKER:/WX> )
68
+
60
69
add_subdirectory (_RegexParser )
61
70
add_subdirectory (_StringProcessing )
62
71
add_subdirectory (RegexBuilder )
Original file line number Diff line number Diff line change @@ -93,6 +93,15 @@ add_compile_options(
93
93
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_LIBRARY_EVOLUTION}>,$<COMPILE_LANGUAGE:Swift>>:-enable-library-evolution>"
94
94
"$<$<AND:$<BOOL:${${PROJECT_NAME} _ENABLE_PRESPECIALIZATION}>,$<COMPILE_LANGUAGE:Swift>>:SHELL:-Xfrontend -prespecialize-generic-metadata>" )
95
95
96
+ # LNK4049: symbol 'symbol' defined in 'filename.obj' is imported
97
+ # LNK4286: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj'
98
+ # LNK4217: symbol 'symbol' defined in 'filename_1.obj' is imported by 'filename_2.obj' in function 'function'
99
+ #
100
+ # We cannot selectively filter the linker warnings as we do not use the MSVC
101
+ # frontned and `clang-cl` (and `clang`) currently do not support `/WX:nnnn`. As
102
+ # a compromise, treat all linker warnings as errors.
103
+ add_link_options ($< $< PLATFORM_ID:Windows> :LINKER:/WX> )
104
+
96
105
gyb_expand (Atomics/AtomicIntegers.swift.gyb Atomics/AtomicIntegers.swift )
97
106
gyb_expand (Atomics/AtomicStorage.swift.gyb Atomics/AtomicStorage.swift )
98
107
You can’t perform that action at this time.
0 commit comments