Skip to content

Commit

Permalink
Statically link to libraries
Browse files Browse the repository at this point in the history
This should hopefully produce a standalone executable
  • Loading branch information
ToMe25 committed Feb 16, 2021
1 parent b97194a commit 4dfc925
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- "**.cpp"
- "**.h"
- ".github/workflows/build.yml"
- "**meson.build"

jobs:

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- "**.cpp"
- "**.h"
- ".github/workflows/test.yml"
- "**meson.build"
pull_request:
paths:
- "**.c"
- "**.cpp"
- "**.h"
- ".github/workflows/test.yml"
- "**meson.build"

jobs:

Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
@@ -1 +1 @@
executable('hex-to-image', ['hex-to-image.cpp', 'stb_image_write.h'])
executable('hex-to-image', ['hex-to-image.cpp', 'stb_image_write.h'], cpp_args: ['-static', '-static-libgcc', '-static-libstdc++'])

0 comments on commit 4dfc925

Please sign in to comment.