File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,18 @@ def print_note(message, stream=sys.stdout):
57
57
stream .flush ()
58
58
59
59
60
+ def print_warning (message , stream = sys .stdout ):
61
+ """Writes a warning to the given stream. By default this function outputs
62
+ to stdout.
63
+ """
64
+
65
+ warning = "[{}] WARNING: {}\n " .format (sys .argv [0 ], message )
66
+ magenta_warning = "\033 [35m" + warning + "\033 [0m"
67
+
68
+ stream .write (magenta_warning )
69
+ stream .flush ()
70
+
71
+
60
72
def clean_delay ():
61
73
"""Provide a short delay so accidentally invoked clean builds can be
62
74
canceled.
@@ -746,6 +758,17 @@ def main_normal():
746
758
tar (source = prefix .lstrip ('/' ),
747
759
destination = args .symbols_package )
748
760
761
+ if args .cmake_generator == "Xcode" :
762
+ print_warning (
763
+ "The Xcode projects generated with '--xcode' can be used for "
764
+ "navigation or editing purposes, but are not a recommended means "
765
+ "to building, running or debugging. For a full-fledged Xcode "
766
+ "workflow using these generated projects, see "
767
+ "https://github.com/apple/swift/blob/main/docs/HowToGuides/"
768
+ "GettingStarted.md#using-ninja-with-xcode"
769
+ )
770
+ print ()
771
+
749
772
return 0
750
773
751
774
You can’t perform that action at this time.
0 commit comments