Skip to content

Commit

Permalink
fix build on raspi
Browse files Browse the repository at this point in the history
  • Loading branch information
aappleby committed Mar 8, 2024
1 parent f0d7649 commit 4161a24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.hancho
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ config.verbose = True
config.jobs = 1

Rule()([], [], desc = "Run all tests", command = "cd tests && rm -rf build && ./test.py 2> /dev/null")
Rule()([], [], desc = "Build all tutorials", command = "cd tutorial && rm -rf build && hancho --quiet")
Rule()([], [], desc = "Build hello_world", command = "cd examples/hello_world && rm -rf build && hancho --quiet")
Rule()([], [], desc = "Build gtk hello_world", command = "cd examples/meson && rm -rf build && hancho --quiet")
Rule()([], [], desc = "Build all tutorials", command = "cd tutorial && rm -rf build && ../hancho.py --quiet")
Rule()([], [], desc = "Build hello_world", command = "cd examples/hello_world && rm -rf build && ../../hancho.py --quiet")
Rule()([], [], desc = "Build gtk hello_world", command = "cd examples/meson && rm -rf build && ../../hancho.py --quiet")
8 changes: 4 additions & 4 deletions examples/meson/build.hancho
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# examples/meson/build.hancho

config.toolchain = "x86_64-linux-gnu"
#config.toolchain = "x86_64-linux-gnu"
config.build_type = "debug"
config.build_dir = "build/{build_type}"

compile = Rule(
desc = "Compiling {files_in} -> {files_out} ({build_type})",
command = "{toolchain}-gcc {includes} {gcc_opts} {defines} {warnings} -c {files_in} -o {files_out}",
command = "gcc {includes} {gcc_opts} {defines} {warnings} -c {files_in} -o {files_out}",
includes = [
"-I."
],
gcc_opts = [
"{'-O3' if build_type == 'release' else '-g -O0'}",
"{'-O3' if build_type == 'release' else '-O0'}",
"-MMD",
"-fdiagnostics-color=always"
],
Expand All @@ -28,7 +28,7 @@ compile = Rule(

link = Rule(
desc = "Linking {files_out}",
command = "{toolchain}-g++ {files_in} -o {files_out} {link_opts}",
command = "gcc {files_in} -o {files_out} {link_opts}",
link_opts = [
"-Wl,--as-needed",
"-Wl,--no-undefined",
Expand Down

0 comments on commit 4161a24

Please sign in to comment.