Fix -warn-stack-size command line option for LLVM 12
The -warn-stack-size command line option won't be deprecated until the
LLVM 13 release.
This change also produces a compile-time error when LLVM 13+ is used so
we won't fail to notice that the the stack size checking functionality
has to be implemented using the per-function "warn-stack-size" attribute
introduced by https://reviews.llvm.org/D104342. Note that development
builds of LLVM use LLVM_MAJOR_VERSION=9999.
Bug: b/191193823
Change-Id: I044d576a6dcd73354710783a7f7e042cb43254c5
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/55188
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by:
Nicolas Capens <nicolascapens@google.com>
Reviewed-by:
Alexis Hétu <sugoi@google.com>
Showing
Please
register
or
sign in
to comment