Skip to content

Commit bdc2bb5

Browse files
bottlerfacebook-github-bot
authored andcommitted
MACOSX_DEPLOYMENT_TARGET=10.14
Summary: pybind now seems to need C++17 on a mac, so advise people to use it. (Also delete an unused variable to silence a warning I got on a mac build.) Reported in github issue facebookresearch#68. Reviewed By: nikhilaravi Differential Revision: D19970512 fbshipit-source-id: f9be20c8ed425bd6ba8d009a7d62dad658dccdb1
1 parent 2346589 commit bdc2bb5

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

INSTALL.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@ To rebuild after installing from a local clone run, `rm -rf build/ **/*.so` then
7070

7171
**Install from local clone on macOS:**
7272
```
73-
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ pip install -e .
73+
MACOSX_DEPLOYMENT_TARGET=10.14 CC=clang CXX=clang++ pip install -e .
7474
```

packaging/pkg_helpers.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ setup_build_version() {
113113
# Set some useful variables for OS X, if applicable
114114
setup_macos() {
115115
if [[ "$(uname)" == Darwin ]]; then
116-
export MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++
116+
export MACOSX_DEPLOYMENT_TARGET=10.14 CC=clang CXX=clang++
117117
fi
118118
}
119119

pytorch3d/csrc/face_areas_normals/face_areas_normals_cpu.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
std::tuple<at::Tensor, at::Tensor> FaceAreasNormalsCpu(
77
at::Tensor verts,
88
at::Tensor faces) {
9-
const int V = verts.size(0);
109
const int F = faces.size(0);
1110

1211
at::Tensor areas = at::empty({F}, verts.options());

0 commit comments

Comments
 (0)