add ability to disable werror for rocksdb (#32618)
* add ability to disable werror for rocksdb * Update var/spack/repos/builtin/packages/rocksdb/package.py Co-authored-by: Robert Underwood <runderwood@anl.gov> Co-authored-by: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com>
This commit is contained in:
parent
d6a3ffc301
commit
9e5f3f96dd
@ -33,6 +33,7 @@ class Rocksdb(MakefilePackage):
|
||||
variant("zlib", default=True, description="Enable zlib compression support")
|
||||
variant("zstd", default=False, description="Enable zstandard compression support")
|
||||
variant("tbb", default=False, description="Enable Intel TBB support")
|
||||
variant("werror", default=False, description="Build with -Werror")
|
||||
|
||||
depends_on("bzip2", when="+bz2")
|
||||
depends_on("gflags")
|
||||
@ -93,6 +94,9 @@ def install(self, spec, prefix):
|
||||
env["CFLAGS"] = " ".join(cflags)
|
||||
env["PLATFORM_FLAGS"] = " ".join(ldflags)
|
||||
|
||||
if "~werror" in self.spec:
|
||||
env["DISABLE_WARNING_AS_ERROR"] = "1"
|
||||
|
||||
if self.spec.satisfies("@6.13.2:"):
|
||||
env["PREFIX"] = self.spec.prefix
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user