-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(pkg/driverbuiler): avoid overriding CC
at build time.
#322
Conversation
Instead, set CMAKE_C_COMPILER variable at cmake configure step. Signed-off-by: Federico Di Pierro <[email protected]>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -76,7 +77,6 @@ type commonTemplateData struct { | |||
ModuleFullPath string | |||
BuildModule bool | |||
BuildProbe bool | |||
GCCVersion string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need the templated GCCVersion anymore since we already pass a correctly formatted cmake command to builders.
c.DriverVersion), | ||
}, | ||
UseDKMS: l.UseDKMS, | ||
DownloadSrc: len(l.SrcDir) == 0, // if no srcdir is provided, download src! | ||
DriverVersion: c.DriverVersion, | ||
KernelRelease: c.KernelRelease, | ||
GCCPath: l.GccPath, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When building through dkms
, cmake is not involved, therefore for local
script, it must still be passed somehow.
Uh it seems like
...
and indeed:
|
/close |
@FedeDP: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area pkg
What this PR does / why we need it:
Instead, set CMAKE_C_COMPILER variable at cmake configure step.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: