- 
                Notifications
    You must be signed in to change notification settings 
- Fork 301
          intrinsic-test: streamline c compilation
          #1861
        
          New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
  
    intrinsic-test: streamline c compilation
  
  #1861
              Conversation
intrinsic-test: streamline c compilation
      d2a815e    to
    e8d5bc4      
    Compare
  
    | cpp_compiler.command_mut().args([ | ||
| &format!("--sysroot={cxx_toolchain_dir}/aarch64_be-none-linux-gnu/libc"), | ||
| "--include-directory", | ||
| &format!("{cxx_toolchain_dir}/aarch64_be-none-linux-gnu/include/c++/14.2.1"), | ||
| "--include-directory", | ||
| &format!("{cxx_toolchain_dir}/aarch64_be-none-linux-gnu/include/c++/14.2.1/aarch64_be-none-linux-gnu"), | ||
| "-L", | ||
| &format!("{cxx_toolchain_dir}/lib/gcc/aarch64_be-none-linux-gnu/14.2.1"), | ||
| "-L", | ||
| &format!("{cxx_toolchain_dir}/aarch64_be-none-linux-gnu/libc/usr/lib"), | ||
| "-B", | ||
| &format!("{cxx_toolchain_dir}/lib/gcc/aarch64_be-none-linux-gnu/14.2.1"), | ||
| ]); | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I got this to work, meaning we can drop the custom linker stuff. I've also reverted the linker change from gcc to g++ for now, it might be needed later but we can change it then.
e8d5bc4    to
    ff7559f      
    Compare
  
    | Lmk if this is still too tough to review btw, I could attempt to break it up further. | 
| LGTM, just resolve those merge conflicts (just version bump for gcc). Also, shouldn't there be a better way to add the libraries than just hardcoding the librarypath, like at least making the version a parameter? | 
ff7559f    to
    3735533      
    Compare
  
    
Preparation for combining the C files. That is the biggest speedup, so I want to do that first to make later refactorings less painful.