binary-signal commented on PR #60:
URL: https://github.com/apache/fluss-rust/pull/60#issuecomment-4022848579

   @leekeiabstraction 
   The PR modifies .cargo/config.toml to add platform-specific Rust compiler 
flags:
   
   Linux target - Adds optimization flags for Linux:
   
   --gc-sections - Remove unused sections
   --as-needed - Only link needed libraries
   -z,norelro - Disable relro (read-only relocations)
   relocation-model=pic - Position-independent code
   
   
   macOS targets - Separates into two distinct configs:
   x86_64-apple-darwin (Intel Macs)
   aarch64-apple-darwin (Apple Silicon)
   
   Both use the same flags for dynamic library linking
   
   
   Windows target - Adds static CRT linking:
   target.x86_64-pc-windows-msvc with +crt-static feature
   
   This enables the project to compile correctly across Linux, macOS (both 
Intel and ARM), and Windows with optimized settings for each platform.


-- 
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