Skip to content

Commit 20b2e5b

Browse files
committed
Fix macos build
1 parent f30b2d8 commit 20b2e5b

File tree

5 files changed

+2
-605
lines changed

5 files changed

+2
-605
lines changed

lib/nlcore_ext.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,7 @@ NB_MODULE(nlcore_ext, m)
9999
.def("Range", &ADFun::Range)
100100
.def("size_dyn_ind", &ADFun::size_dyn_ind)
101101
.def("optimize", &ADFun::optimize)
102-
.def("function_name_set", &ADFun::function_name_set)
103-
.def("to_csrc", [](ADFun &f) {
104-
std::ostringstream out;
105-
f.to_csrc(out, "double");
106-
return out.str();
107-
});
102+
.def("function_name_set", &ADFun::function_name_set);
108103

109104
nb::enum_<HessianSparsityType>(m, "HessianSparsityType")
110105
.value("Full", HessianSparsityType::Full)

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ build-dir = "build/{wheel_tag}"
3131
cmake.build-type = "Release"
3232

3333
[tool.scikit-build.cmake.define]
34-
ENABLE_GUROBI_CXX = "OFF"
3534
PYTHON_VERSION = { env = "PYTHON_VERSION", default = "3.8" }
3635
CMAKE_FIND_DEBUG_MODE = "OFF"
3736
ENABLE_TEST_MAIN = "OFF"

thirdparty/cppad/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ project(CPPAD CXX)
55
file(GLOB CPPAD_HEADERS include/cppad/*.hpp)
66
set(CPPAD_SOURCES
77
src/cpp_graph_op.cpp
8-
src/csrc_writer.cpp
98
src/temp_file.cpp
109
)
1110

thirdparty/cppad/include/cppad/configure.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ CPPAD_C_COMPILER_MSVC_FLAGS
332332
If true, the C complier uses the same flags as ``cl``
333333
{xrst_spell_off}
334334
{xrst_code hpp} */
335-
# define CPPAD_C_COMPILER_MSVC_FLAGS 1
335+
# define CPPAD_C_COMPILER_MSVC_FLAGS 0
336336
/* {xrst_code}
337337
{xrst_spell_on}
338338

0 commit comments

Comments
 (0)