-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix builds for macos 12.6 #18642
fix builds for macos 12.6 #18642
Changes from 10 commits
4530296
e413ee4
7f27f53
e94a846
cd4c277
bfc8a35
a0c453f
42134f4
b0f3090
fad368a
50b3863
d22e4aa
b0a7fd4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,7 +412,9 @@ def execute(self,base,key,tag,parent_res): | |
print("[removing existing temporary dmg file: {0}]".format(temp_dmg)) | ||
os.remove(temp_dmg) | ||
|
||
cmd = "hdiutil create -srcFolder %s -o %s" % (src_folder, temp_dmg) | ||
# ULMO format (xz) is 1/2 the size of default format (UDZO which is zlib level 1) | ||
#cmd = "hdiutil create -srcFolder %s -o %s" % (src_folder, temp_dmg) | ||
cmd = "hdiutil create -format ULMO -srcFolder %s -o %s" % (src_folder, temp_dmg) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change leads to 275Mb smaller |
||
|
||
########################################################################## | ||
# NOTE (cyrush) 2021-05-27 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{"bootstrap_visit": | ||
{"version": "3.3.3", | ||
"build_types": ["release"], | ||
"branch": "3.3RC", | ||
"arch": "darwin-x86_64", | ||
"cert": "Developer ID Application: Lawrence Livermore National Laboratory (A827VH86QR)", | ||
"entitlements": "/Users/miller86/visit/visit/33rc/src/tools/dev/masonry/opts/visit.entitlements", | ||
"notarize": {"username":"miller86@llnl.gov", | ||
"password":"@keychain:VisIt", | ||
"asc_provider":"A827VH86QR", | ||
"bundle_id":"gov.llnl.visit"}, | ||
"make_nthreads": 2, | ||
"skip_checkout": "yes", | ||
"git": {"mode":"ssh","git_uname":"markcmiller86"}, | ||
"build_visit": { "cmake_ver": "3.18.2", | ||
"args":"--no-thirdparty", | ||
"libs":["cmake", | ||
"vtkm", | ||
"ispc", | ||
"embree", | ||
"tbb", | ||
"ospray", | ||
"python", | ||
"vtk", | ||
"qt", | ||
"qwt", | ||
"boost", | ||
"mpich", | ||
"adios", | ||
"advio", | ||
"boxlib", | ||
"blosc", | ||
"cfitsio", | ||
"cgns", | ||
"conduit", | ||
"fms", | ||
"gdal", | ||
"glu", | ||
"h5part", | ||
"hdf5", | ||
"llvm", | ||
"mfem", | ||
"netcdf", | ||
"pidx", | ||
"silo", | ||
"silex", | ||
"szip", | ||
"icet", | ||
"mili", | ||
"zlib", | ||
"xdmf", | ||
"uintah", | ||
"moab"]} | ||
}} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,12 @@ function build_advio | |
sed "s%FileIO IDL DocIO%FileIO DocIO%g" configure > c2 | ||
mv c2 configure | ||
chmod 750 ./configure | ||
# configure has a number of broken try-run code-blocks | ||
if [[ "$OPSYS" == "Darwin" ]]; then | ||
sed -i orig -e 's/^main()/int main()/' configure | ||
else | ||
sed -i.orig -e 's/^main()/int main()/' configure | ||
fi | ||
info "Invoking command to configure AdvIO" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Many try-run blocks for sizes of types in configure defined a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @markcmiller86 Sorry, didn't see the question about Windows sooner. Not using the build_visit script on Windows, so not an issue. |
||
ADVIO_DARWIN="" | ||
if [[ "$OPSYS" == "Darwin" ]]; then | ||
|
@@ -196,7 +202,7 @@ function build_advio | |
fi | ||
set -x | ||
env CXX="$CXX_COMPILER" CC="$C_COMPILER" \ | ||
CFLAGS="$CFLAGS $C_OPT_FLAGS" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS" \ | ||
CFLAGS="$CFLAGS $C_OPT_FLAGS" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS -Wno-error=implicit-function-declaration" \ | ||
./configure --prefix="$VISITDIR/AdvIO/$ADVIO_VERSION/$VISITARCH" --disable-gtktest $ADVIO_DARWIN $ADVIO_DEBUG | ||
set +x | ||
if [[ $? != 0 ]] ; then | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change leads to 100Mb smaller tarball on mac. Would assume similar savings on other platforms. If we could control flags to xz, we could improve that a bit more. We could do that if we used Python tools to tar and compress...as we do in the top level
data
dir.