Skip to content
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

Allow .S files in C++ Starlark cc_common.compile. #13155

Closed
wants to merge 1 commit into from

Commits on Mar 4, 2021

  1. Allow .S files in C++ Starlark cc_common.compile.

    .S files are (typically handwritten) assembly files that require
    preprocessing, compared to their lower-capital .s counterparts that can
    be compiled directly into object files.
    
    Native cc_library rules already allow .S files in srcs [1]. However, the
    Starlark cc_common.compile srcs argument doesn't accept them. This
    change adds .S files to the list of valid srcs for cc_common.compile.
    
    This is required for building AOSP, as there are handwritten source files in
    Android's libc with the .S extension [2] that will be compiled through
    Starlark C++ rules, e.g. directly into .o files.
    
    [1]: https://cs.opensource.google/bazel/bazel/+/master:src/main/java/com/google/devtools/build/lib/bazel/rules/cpp/BazelCppRuleClasses.java;l=280;drc=35de1e352459729f95d552b6ae5af9ce7d00a943
    [2]: https://cs.android.com/search?q=f:%5C.S$&sq=
    jin committed Mar 4, 2021
    Configuration menu
    Copy the full SHA
    2b788da View commit details
    Browse the repository at this point in the history