Skip to content

Add build_variable.bzl to CMAKE_RERUN target#36809

Closed
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/cmake-add-build-variables-dependency
Closed

Add build_variable.bzl to CMAKE_RERUN target#36809
malfet wants to merge 1 commit intopytorch:masterfrom
malfet:malfet/cmake-add-build-variables-dependency

Conversation

@malfet
Copy link
Copy Markdown
Contributor

@malfet malfet commented Apr 17, 2020

configure_file command adds its input as a top-level dependency triggering make file regeneration if file timestamp have changed
Also abort CMAKE if exec of build_variables.bzl failed for some reason

Test Plan: Add invalid statement to build_variables.bzl and check that build process fails

`configure_file` command adds its input as a top-level dependency triggering make file regeneration if file timestamp have changed
Also abort CMAKE if `exec` of build_variables.bzl failed for some reason

Test Plan: Add invalid statement to build_variables.bzl and check that build process fails
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@malfet is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@malfet malfet deleted the malfet/cmake-add-build-variables-dependency branch April 18, 2020 01:57
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@malfet merged this pull request in 4668d47.

Comment thread cmake/Codegen.cmake
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
`configure_file` command adds its input as a top-level dependency triggering make file regeneration if file timestamp have changed
Also abort CMAKE if `exec` of build_variables.bzl failed for some reason
Pull Request resolved: pytorch#36809

Test Plan: Add invalid statement to build_variables.bzl and check that build process fails

Differential Revision: D21100721

Pulled By: malfet

fbshipit-source-id: 79a54aa367fb8dedb269c78b9538b4da203d856b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants