Commit d02f26df authored by sxtyzhangzk's avatar sxtyzhangzk Committed by Zhekai Zhang
Browse files

[major] fix build issue

parent fa0c0636
...@@ -6,7 +6,6 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension ...@@ -6,7 +6,6 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension
class CustomBuildExtension(BuildExtension): class CustomBuildExtension(BuildExtension):
def build_extensions(self): def build_extensions(self):
for ext in self.extensions: for ext in self.extensions:
print(ext.extra_compile_args)
if not "cxx" in ext.extra_compile_args: if not "cxx" in ext.extra_compile_args:
ext.extra_compile_args["cxx"] = [] ext.extra_compile_args["cxx"] = []
if self.compiler.compiler_type == "msvc": if self.compiler.compiler_type == "msvc":
......
...@@ -75,7 +75,7 @@ private: ...@@ -75,7 +75,7 @@ private:
class SafeTensors::MMapImplPrivate : public SafeTensors::MMapImpl { class SafeTensors::MMapImplPrivate : public SafeTensors::MMapImpl {
public: public:
MMapImplPrivate(const std::string &filename) { MMapImplPrivate(const std::string &filename) {
throw std::runtime_error("MAP_PRIVATE is not implemented on this system") throw std::runtime_error("MAP_PRIVATE is not implemented on this system");
} }
virtual size_t size() override { virtual size_t size() override {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment