Skip to content

Conversation

@owenv
Copy link
Contributor

@owenv owenv commented Sep 6, 2020

This PR adds validation for:

  • conditional compilation arguments
  • -profile-generate and -profile-use
  • -F and -Fsystem

Additionally, if a validation step fails when initializing the driver, don't fail immediately. Instead, record any other validation failures and then exit before planning.

@owenv
Copy link
Contributor Author

owenv commented Sep 6, 2020

@swift-ci test

Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

This looks great! Thank you

@owenv
Copy link
Contributor Author

owenv commented Sep 6, 2020

Looks like I made a small mistake with the original implementation - a couple of these diagnostics should be warnings. Thanks for the quick review @DougGregor!

@owenv
Copy link
Contributor Author

owenv commented Sep 6, 2020

@swift-ci test

import XCTest
import SwiftDriver
import TSCBasic
import TSCUtility
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not right now, but we might need it to import Diagnostics.fatalError when we address the main.swift FIXME. For now I've dropped it.

@owenv
Copy link
Contributor Author

owenv commented Sep 6, 2020

@swift-ci test

1 similar comment
@owenv
Copy link
Contributor Author

owenv commented Sep 6, 2020

@swift-ci test

@owenv owenv merged commit b3ff6c1 into swiftlang:master Sep 7, 2020
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