Skip to content

Commit

Permalink
fix: Fixed MacOS linking object files for AOT compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
alinalihassan committed May 17, 2022
1 parent ccd6b45 commit bb20177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
# Enable tmate debugging of manually-triggered workflows if the input option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}

- name: Test
working-directory: ${{github.workspace}}/build
Expand Down
2 changes: 2 additions & 0 deletions src/liblesma/Backend/Codegen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ void Codegen::LinkObjectFile(const std::string &obj_filename) {
args.push_back(obj.c_str());
args.push_back("-o");
args.push_back(output.c_str());
#ifdef __APPLE__
args.push_back("-L");
args.push_back("/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib");
args.push_back("-lSystem");
#endif

auto DiagOpts = new clang::DiagnosticOptions();
auto DiagID = new clang::DiagnosticIDs();
Expand Down

0 comments on commit bb20177

Please sign in to comment.