Skip to content

Commit

Permalink
Update game-porting-toolkit.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcenx authored Jul 17, 2024
1 parent c8d9491 commit 001a9bd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Formula/game-porting-toolkit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,16 @@ def install
compiler_options = ["CC=#{compiler.bin}/clang",
"CXX=#{compiler.bin}/clang++"]

# Compiler flags for PE binaries.
ENV.append "CROSSCFLAGS", "-O3 -Wno-error=incompatible-pointer-types -Wno-error=int-conversion"

Check failure on line 47 in Formula/game-porting-toolkit.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

Layout/TrailingWhitespace: Trailing whitespace detected.
# We also need to tell the linker to add Homebrew to the rpath stack.
ENV.append "LDFLAGS", "-lSystem"
ENV.append "LDFLAGS", "-L#{HOMEBREW_PREFIX}/lib"
ENV.append "LDFLAGS", "-Wl,-rpath,#{HOMEBREW_PREFIX}/lib"
ENV.append "LDFLAGS", "-Wl,-rpath,@executable_path/../lib/external"

# Common compiler flags for both Mach-O and PE binaries.

Check failure on line 53 in Formula/game-porting-toolkit.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

Layout/TrailingWhitespace: Trailing whitespace detected.
# Compiler flags for Mach-O binaries.
ENV.append_to_cflags "-O3 -Wno-deprecated-declarations -Wno-incompatible-pointer-types"
# Use an older deployment target to avoid new dyld behaviors.
# The custom compiler is too old to accept "13.0", so we use "10.14".
Expand Down

0 comments on commit 001a9bd

Please sign in to comment.