Browse Source

fix protoc-c

ruki 4 years ago
parent
commit
a78fe03605
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/p/protobuf-c/xmake.lua

+ 2 - 0
packages/p/protobuf-c/xmake.lua

@@ -23,6 +23,8 @@ package("protobuf-c")
     end)
 
     on_install("windows", function (package)
+        -- fix run `protoc-c.exe` failed
+        io.replace("protoc-c/main.cc", "invocation_basename == legacy_name", "1")
         os.cd("build-cmake")
         local cflags
         local shflags