-
Notifications
You must be signed in to change notification settings - Fork 512
Mac fix build race condition #6444
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
Changes from all commits
651cf00
9c7ebaa
ffb9965
9d5cbb3
1d8d6b7
a7219d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -68,6 +68,8 @@ int main(int argc, char** argv) { | |||||||||||
| printf("%s\n", myPath); // For debugging | ||||||||||||
| #endif | ||||||||||||
|
|
||||||||||||
| chdir(getenv("SRCROOT")); | ||||||||||||
|
||||||||||||
| chdir(getenv("SRCROOT")); | |
| if (chdir(getenv("SRCROOT")) == -1) { | |
| perror("Error changing directory to SRCROOT"); | |
| return 1; | |
| } |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,65 @@ | ||||||
| #!/bin/bash | ||||||
|
|
||||||
| # This file is part of BOINC. | ||||||
| # http://boinc.berkeley.edu | ||||||
| # Copyright (C) 2025 University of California | ||||||
| # | ||||||
| # BOINC is free software; you can redistribute it and/or modify it | ||||||
| # under the terms of the GNU Lesser General Public License | ||||||
| # as published by the Free Software Foundation, | ||||||
| # either version 3 of the License, or (at your option) any later version. | ||||||
| # | ||||||
| # BOINC is distributed in the hope that it will be useful, | ||||||
| # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||||
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||||||
| # See the GNU Lesser General Public License for more details. | ||||||
| # | ||||||
| # You should have received a copy of the GNU Lesser General Public License | ||||||
| # along with BOINC. If not, see <http://www.gnu.org/licenses/>. | ||||||
| # | ||||||
| # | ||||||
| # Update_Info_Plists.sh | ||||||
| # by Charlie Fenton 7/11/25 | ||||||
| # | ||||||
|
|
||||||
| ## Called from pre-actions in BOINC Xcode project when compiling BOINC. | ||||||
| ## Note that Xcode runs build pre-actions pnly for the currently selected | ||||||
|
||||||
| ## Note that Xcode runs build pre-actions pnly for the currently selected | |
| ## Note that Xcode runs build pre-actions only for the currently selected |
Copilot
AI
Jul 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in comment: 'ovehead' should be 'overhead'
| ## build operation, even the build_all target. The ovehead of running this | |
| ## build operation, even the build_all target. The overhead of running this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The chdir call does not check if getenv("SRCROOT") returns NULL, which would cause undefined behavior. Add a null check before calling chdir.