parseArgs
| 816 | size_t toolLength = strlen(toolName); |
| 817 | char* stem = (char*)malloc(prefixLength + toolLength + 1); |
| 818 | if (!stem) return NULL; |
| 819 | memcpy(stem, "SC-", prefixLength); |
| 820 | memcpy(stem + prefixLength, toolName, toolLength); |
| 821 | stem[prefixLength + toolLength] = 0; |
| 822 | return stem; |
| 823 | } |
| 824 | |
| 825 | char* buildToolsObjectPath(const CompilationInfo* ci) { |
| 826 | return Path_joinWithExtension(ci->intermediateDir, "Tools", objectExtension()); |
| 827 | } |
| 828 | |
| 829 | char* buildToolObjectPath(const CompilationInfo* ci) { |
| 830 | char* stem = buildToolStem(ci->args->toolName); |
| 831 | if (!stem) return NULL; |
| 832 | char* path = Path_joinWithExtension(ci->intermediateDir, stem, objectExtension()); |
| 833 | free(stem); |
| 834 | return path; |
| 835 | } |
| 836 | |
| 837 | char* buildToolsDependencyPath(const CompilationInfo* ci) { |
| 838 | return Path_joinWithExtension(ci->intermediateDir, "Tools", dependencyExtension(ci)); |
| 839 | } |
| 840 | |
| 841 | char* buildToolDependencyPath(const CompilationInfo* ci) { |
| 842 | char* stem = buildToolStem(ci->args->toolName); |
| 843 | if (!stem) return NULL; |
| 844 | char* path = Path_joinWithExtension(ci->intermediateDir, stem, dependencyExtension(ci)); |
no test coverage detected