(flag, prefix, out_dir)
| 163 | |
| 164 | |
| 165 | def MakeIncludePathAbsolute(flag, prefix, out_dir): |
| 166 | # Relative paths need to be resolved, because they're relative to the |
| 167 | # output dir, not the source. |
| 168 | if flag[len(prefix)] == '/': |
| 169 | return flag |
| 170 | else: |
| 171 | abs_path = os.path.normpath(os.path.join(out_dir, flag[len(prefix):])) |
| 172 | return prefix + abs_path |
| 173 | |
| 174 | |
| 175 | def FlagsForFile(filename): |
no test coverage detected
searching dependent graphs…