Skip to content

[DRAFT][DELETE] Y do we have 7 build systems #158148

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

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PARENT_SCOPE and fixing more bazel
  • Loading branch information
janeyx99 committed Jul 14, 2025
commit 80faf0262ea57b048f5a8ae1fa974ab36b6b105d
12 changes: 6 additions & 6 deletions torch/headeronly/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Main build file for torch/headeronly, except there's no build cuz this lib is header-only!

# ---[ Configure macro file.
set(C10_USE_GFLAGS ${USE_GFLAGS}) # used in cmake_macros.h.in
set(C10_USE_GLOG ${USE_GLOG}) # used in cmake_macros.h.in
set(C10_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) # used in cmake_macros.h.in
set(C10_USE_NUMA ${USE_NUMA}) # used in cmake_macros.h.in
set(C10_USE_MSVC_STATIC_RUNTIME ${CAFFE2_USE_MSVC_STATIC_RUNTIME}) # used in cmake_macros.h.in
set(C10_USE_ROCM_KERNEL_ASSERT ${USE_ROCM_KERNEL_ASSERT}) # used in cmake_macros.h.in
set(C10_USE_GFLAGS ${USE_GFLAGS} PARENT_SCOPE) # used in cmake_macros.h.in
set(C10_USE_GLOG ${USE_GLOG} PARENT_SCOPE) # used in cmake_macros.h.in
set(C10_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} PARENT_SCOPE) # used in cmake_macros.h.in
set(C10_USE_NUMA ${USE_NUMA} PARENT_SCOPE) # used in cmake_macros.h.in
set(C10_USE_MSVC_STATIC_RUNTIME ${CAFFE2_USE_MSVC_STATIC_RUNTIME} PARENT_SCOPE) # used in cmake_macros.h.in
set(C10_USE_ROCM_KERNEL_ASSERT ${USE_ROCM_KERNEL_ASSERT} PARENT_SCOPE) # used in cmake_macros.h.in
configure_file(
${CMAKE_CURRENT_LIST_DIR}/macros/cmake_macros.h.in
${CMAKE_BINARY_DIR}/torch/headeronly/macros/cmake_macros.h)
Expand Down
2 changes: 1 addition & 1 deletion torch/headeronly/build.bzl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def define_targets(rules):
rules.cc_library(
name = "torch_headeronly",
hdrs = glob([
hdrs = rules.glob([
"**/*.h"
]),
visibility = ["//visibility:public"],
Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy