Skip to content

Commit

Permalink
Move gcc flags
Browse files Browse the repository at this point in the history
  • Loading branch information
mcm001 committed May 9, 2024
1 parent 91651af commit 4f567e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
10 changes: 0 additions & 10 deletions photon-lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ nativeUtils {
}

model {
toolChains {
gcc(Gcc) {
eachPlatform {
cppCompiler.withArguments { args ->
args << "-Wno-deprecated-enum-enum-conversion"
}
}
}
}

components {
"${nativeName}"(NativeLibrarySpec) {
sources {
Expand Down
3 changes: 3 additions & 0 deletions shared/config.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ model {
binaries {
withType(NativeBinarySpec).all {
nativeUtils.usePlatformArguments(it)
if (it.toolChain instanceof GccCompatibleToolChain) {
it.cppCompiler.args << "-Wno-deprecated-enum-enum-conversion"
}
}
}
}
Expand Down

0 comments on commit 4f567e0

Please sign in to comment.