8000 Added support for -ffile-prefix-map argument by troy4eg · Pull Request #24 · VKCOM/nocc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Added support for -ffile-prefix-map argument #24

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

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

troy4eg
Copy link
Contributor
@troy4eg troy4eg commented Aug 29, 2024

No description provided.

@troy4eg troy4eg self-assigned this Aug 29, 2024
@troy4eg troy4eg force-pushed the troy4eg/added_support_for_prefix_map_flags branch 2 times, most recently from 385b1c6 to 102d067 Compare August 29, 2024 17:23
@troy4eg troy4eg force-pushed the troy4eg/added_support_for_prefix_map_flags branch from 102d067 to 3af7cde Compare October 17, 2024 14:53
@troy4eg troy4eg changed the title Added support for *-prefix-map arguments. Now, you can use the %WORKI… Added support for -ffile-prefix-map argument Oct 17, 2024
@troy4eg troy4eg force-pushed the troy4eg/added_support_for_prefix_map_flags branch from 3af7cde to 947e3ea Compare October 17, 2024 15:03
Comment on lines +75 to +79
for i := 0; i < len(cxxArgs); i++ {
cxxArg := FilePrefixMapOption(cxxArgs[i], session.client.workingDir)

cxxCmdLine = append(cxxCmdLine, cxxArg)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not handle the case where the client does not specify -ffile-prefix-map

P.S. Search seems to have quadratic complexity, but since cmdline is not explected to be long, it might be not an issue...

@troy4eg troy4eg marked this pull request as draft November 1, 2024 14:33
@troy4eg troy4eg marked this pull request as ready for review November 5, 2024 13:05
@Danil42Russia Danil42Russia added the enhancement New feature or request label Nov 7, 2024
if strings.Contains(cxxArg, prefixMapOption) {
parts := strings.Split(cxxArg, "=")
if len(parts) >= 2 && path.IsAbs(parts[1]) {
parts[1] = replaced + parts[1]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parts[1] = path.Join(replaced, parts[1])

@troy4eg troy4eg force-pushed the troy4eg/added_support_for_prefix_map_flags branch from 947e3ea to 3da9dab Compare November 18, 2024 14:58
@troy4eg troy4eg force-pushed the troy4eg/added_support_for_prefix_map_flags branch from 3da9dab to a0fd38e Compare November 18, 2024 15:01
@troy4eg troy4eg merged commit 1599d36 into master Nov 20, 2024
@Danil42Russia Danil42Russia deleted the troy4eg/added_support_for_prefix_map_flags branch November 20, 2024 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0