Skip to content

Commit

Permalink
Building custom protoc/protobuf
Browse files Browse the repository at this point in the history
  • Loading branch information
stemann committed Feb 21, 2022
1 parent 8f79945 commit 0cd8cdb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions T/Torch/Torch/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,9 @@ cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$prefix \
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \
-DBUILD_CUSTOM_PROTOBUF=OFF \
-DBUILD_PYTHON=OFF \
-DPYTHON_EXECUTABLE=`which python3` \
-DBUILD_SHARED_LIBS=ON \
-DPROTOBUF_PROTOC_EXECUTABLE=$host_bindir/protoc \
-DCAFFE2_CUSTOM_PROTOC_EXECUTABLE=$host_bindir/protoc \
..
cmake --build .
Expand Down Expand Up @@ -71,8 +68,7 @@ products = [

# Dependencies that must be installed before this package can be built
dependencies = [
Dependency("MKL_jll"; platforms = mkl_platforms),
HostBuildDependency("protoc_jll")
Dependency("MKL_jll"; platforms = mkl_platforms)
]

# Build the tarballs, and possibly a `build.jl` as well.
Expand Down

0 comments on commit 0cd8cdb

Please sign in to comment.