Skip to content

Commit

Permalink
Adjust the generation of the library makefile to avoid duplicate libr…
Browse files Browse the repository at this point in the history
…ary warning

Since Macs seem to object to providing duplicate libraries now, avoid adding it
at the end of the generated makefile compilation line.

----
Signed-off-by: Lydia Duncan <[email protected]>
  • Loading branch information
lydia-duncan committed Aug 29, 2024
1 parent 3dfa7c6 commit 73ccf85
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions compiler/codegen/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,8 @@ static void printMakefileLibraries(fileinfo makefile, std::string name) {
fprintf(makefile.fptr, "%s", requires_.c_str());
}

//
// Append the Chapel library as the last linker argument. We do this as a
// stopgap to make the GNU linker happy.
//
removeTrailingNewlines(libraries);
fprintf(makefile.fptr, " %s %s\n\n", libraries.c_str(), libname.c_str());
fprintf(makefile.fptr, " %s\n\n", libraries.c_str());
}

// Helper to convert command lines flags from make syntax to CMake syntax
Expand Down

0 comments on commit 73ccf85

Please sign in to comment.