Skip to content

Conversation

@JDevlieghere
Copy link
Contributor

Doing so may have made sense back then, but at this point we should default to the one in the toolchain. When building with asserts, the just-built dsymutil will run the DWARF verifier which is slow and not really desirable in this context.

Doing so may have made sense back then, but at this point we should
default to the one in the toolchain. When building with asserts, the
just-built dsymutil will run the DWARF verifier which is slow and not
really desirable in this context.
@JDevlieghere
Copy link
Contributor Author

@swift-ci test

darwin-deployment-version-xros "1.0" "minimum deployment target version for xrOS"
darwin-install-extract-symbols "" "whether to extract symbols with dsymutil during installations"
darwin-install-extract-symbols-use-just-built-dsymutil "1" "whether we should extract symbols using the just built dsymutil"
darwin-install-extract-symbols-use-just-built-dsymutil "" "whether we should extract symbols using the just built dsymutil"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This alone will not guarantee that the dsymutil provided by the underlying toolchain/SDK is not built with asserts.

I think a better option is to to add --verify-dwarf none on the invocation on line 3096, and have users override this with --extra-dsymutil-args when needed (assuming dsymutil takes the last option, which I haven't verified)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add it, but I still don't think using the just-built dsymutil should be the default.

@JDevlieghere
Copy link
Contributor Author

@swift-ci test

Copy link
Contributor

@edymtt edymtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please generate the toolchain for macOS (@swift-ci please build toolchain macOS) to be sure we are not regressing the packaging job.

@JDevlieghere
Copy link
Contributor Author

@swift-ci please build toolchain macOS

@JDevlieghere
Copy link
Contributor Author

Failed Tests (2):
  Swift-validation(macosx-x86_64) :: BuildSystem/extra_dsymutil_args.test
  Swift-validation(macosx-x86_64) :: BuildSystem/extra_dsymutil_args_empty.test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants