Additional SOURCE_FILENAME
variable in CppCompileVariables
#15924
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-CPP
Issues for C++ rules
type: feature request
Description of the feature request:
We currently define
__SHORT_FILENAME__=basename of source_file
in cmake usingCOMPILE_DEFINITIONS
feature. Currently, I don't see any way to define that flag inside of bazel. I triedbut that fails to work because it gets escaped during the shell expansion with single quotes to
'-D__SHORT_FILENAME=$(basename path_to_file/file.cpp)'
.So, would it be okay for me to make a change to the
CompileBuildVariables.java
and add a enumSOURCE_FILENAME
that just stores the name of the file.The text was updated successfully, but these errors were encountered: