Skip to content

Conversation

@frobware
Copy link
Contributor

Invoking the following:

$ make build DBG=1
$ make nodelink-controller DBG=1
$ make test-e2e DBG=1

will build the respective binaries with Go debug support. The build
rules for those three targets are now go build $(GOGCFLAGS) ....

The default value for GOGCFLAGS is -gcflags=all="-N -l", assuming
GOGCFLAGS it not already set in your environment. "all" specifies that
the flags should be applied to all packages (and may rebuild existing
up to date packages); "-N" disables compiler optimisations and "-l"
prevents inlining.

So, to override the defaults:

$ make build DBG=1 GOGCFLAGS='-gcflags="-N -l"'

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 15, 2018
Makefile Outdated
@@ -1,8 +1,13 @@
DBG ?= 1
Copy link
Contributor

@paulfantom paulfantom Oct 15, 2018

Choose a reason for hiding this comment

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

Should it be enabled by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should it be enabled by default?

Argh! Left over from my testing...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should it be enabled by default?

Fixed.

Invoking the following:

    $ make build DBG=1
    $ make nodelink-controller DBG=1
    $ make test-e2e DBG=1

will build the respective binaries with Go debug support. The build
rules for those three targets are now `go build $(GOGCFLAGS) ...`.

The default value for GOGCFLAGS is -gcflags=all="-N -l", assuming
GOGCFLAGS it not already set in your environment. "all" specifies that
the flags should be applied to all packages (and may rebuild existing
up to date packages); "-N" disables compiler optimisations and "-l"
prevents inlining.

So, to override the defaults:

    $ make build DBG=1 GOGCFLAGS='-gcflags="-N -l"'
@paulfantom
Copy link
Contributor

/approve

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: paulfantom

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 15, 2018
@spangenberg
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 15, 2018
@openshift-merge-robot openshift-merge-robot merged commit 812b9ab into openshift:master Oct 15, 2018
ingvagabund pushed a commit to ingvagabund/machine-api-operator that referenced this pull request Jul 11, 2019
germanparente pushed a commit to germanparente/machine-api-operator that referenced this pull request Sep 23, 2025
germanparente pushed a commit to germanparente/machine-api-operator that referenced this pull request Sep 23, 2025
…enshift-4.19-ose-machine-api-provider-gcp

OCPBUGS-45733: Updating ose-machine-api-provider-gcp-container image to be consistent with ART for 4.19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants