1oo7
(J. Shad.)
September 25, 2021, 7:31pm
1
Where can I find a comprehensive list of Swift compiler flags with documentation ?
I am trying to figure out what options I can set on a per-file basis in Xcode using the "Compiler Flags" field in the Compile Sources build phase:
Ever since Xcode 13, I keep getting build errors that such-and-such file was modified during the build, which is expected since these files are generated by a build script in a prior build phase.
So I would like to disable that particular error on these files. How can I do so?
Or is this just a known bug in Xcode 13?
Thanks.
4 Likes
byaruhaf
(Franklin Byaruhanga)
September 25, 2021, 7:50pm
2
Check out XcodeBuildSettings.com for a complete reference of every build setting supported for the latest version of Xcode.
1oo7
(J. Shad.)
September 25, 2021, 8:19pm
3
But which one of those settings can be used in this field? How do I know if that's a comprehensive list?
Surely there is some official documentation somewhere about this?
Perhaps the omniscient @xwu might know?
I don't know if they are comprehensive, but maybe swiftc --help-hidden
and swiftc -frontend --help-hidden
could help?
3 Likes
1oo7
(J. Shad.)
May 5, 2022, 4:32pm
5
Answering my own question:
//===--- FrontendOptions.td - Options for swift -frontend -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file defines the options accepted by swift -frontend.
//
//===----------------------------------------------------------------------===//
let Flags = [FrontendOption, NoDriverOption] in {
def triple : Separate<["-"], "triple">, Alias<target>;
This file has been truncated. show original
and
3 Likes