autocxx icon indicating copy to clipboard operation
autocxx copied to clipboard

autocxx_build does not support multiple include_cpp! in different files

Open thinkphoebe opened this issue 2 years ago • 0 comments

I have multiple include_cpp! in different modules which in different .rs files, but autocxx_build::Builder::new() only supports one input .rs file.

I have tried to call autocxx_build::Builder::new() for each .rs file, but build failed with error 'Builder::init should not be called after logger initialized: SetLoggerError(())'. Every autocxx_build::Builder::new() calls env_logger::builder().init(), which should only call once. So, autocxx_build::Builder::new() can only create one instance.

  • Version: 0.22.3

thinkphoebe avatar Aug 05 '22 09:08 thinkphoebe