chenbaggio commented on issue #13349:
URL: https://github.com/apache/arrow/issues/13349#issuecomment-1151603553

   I use canon python script to build
   
   ```
   import os
   
   from conans import ConanFile, CMake, tools, AutoToolsBuildEnvironment, Meson
   
   dependencies = [
       "orc/1.7.0@hashdata/testing"
   ]
   
   
   class GopherConan(ConanFile):
       name = "arrow"
       license = "Apache License Version 2"
       url = "https://code.hashdata.xyz/hashdata/Gopher";
       description = "A Vector Computing System"
       settings = "os", "compiler", "build_type", "arch"
       generators = "cmake", "pkg_config"
       exports_sources = ["../*", "!.git/*", "!.ci/*", "!.gitlab-ci.yml", 
"!build/*", "!binary/*", "!vagrant/*",
                          "!.idea/*", "!cmake-build*/*"]
       revision_mode = "scm"
   
       def set_version(self):
           self.version = "2.0.0"
   
       def requirements(self):
           for dependency in dependencies:
               self.requires(dependency)
   
       def imports(self):
           self.copy("*.so", dst="thirdparty", src="lib")
   
       def build(self):
           cmake = CMake(self)
           cmake.configure(source_folder="cpp", defs={
               "CONAN_DISABLE_CHECK_COMPILER": "ON",
               "ARROW_BUILD_STATIC": "OFF",
               "ARROW_PYTHON": "ON",
               "ARROW_GANDIVA": "ON",
               "ARROW_COMPUTE": "ON",
               "ARROW_CSV": "ON",
               "ARROW_PARQUET": "ON",
               "ARROW_DATASET": "ON",
               "ARROW_FILESYSTEM": "ON",
               "ARROW_BUILD_UTILITIES": "ON",
               "ARROW_JSON": "ON",
               "ARROW_ORC": "ON",
               "CMAKE_BUILD_TYPE": "debug"
           })
           cmake.build()
           cmake.install()
   
           with tools.environment_append(
                   {
                       "LD_LIBRARY_PATH": [os.path.join(self.build_folder, 
"thirdparty")]
                   }):
               meson = Meson(self)
               meson.configure(source_folder=os.path.join(self.source_folder, 
"c_glib"),
                   pkg_config_paths=[os.path.join(self.package_folder, 
"lib/pkgconfig")]
                   )
               meson.build()
               meson.install()
   
       def package(self):
           pass
   
       def package_info(self):
           self.cpp_info.includedirs = ['include']
           self.cpp_info.libdirs = ['lib']
           self.cpp_info.bindirs = ['bin']
   
   ```
   but it always show buildtype is release, I have to add the line
   
   ```
   os.system("meson /code/c_glib -Dcpp_args=\"-g -O0\" -Dcpp_std=\"c++11\" 
-Dc_args=\"-g -O0\" auto_features=disabled --optimization=g --buildtype=debug 
--debug  --reconfigure")
   
   ```
   the buildtype can change into debug, but ninja call gcc,  the optimmizer 
argument is O3


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to