Skip to content

Commit 65ad637

Browse files
committed
build-script: Don't automatically clear the module cache.
On Darwin, LLVM builds with -gmodules which causes debug info for the types defined by the LLVM modules is stored alongside the modules in the module cache. Deleting the module cache on every re-invocation of build-script without re-building the LLVM and clang modules will erase the debug info and thus render any LLVM types undebuggable. rdar://problem/28655564
1 parent 44b8a0b commit 65ad637

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

utils/build-script-impl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,10 +2442,6 @@ for host in "${ALL_HOSTS[@]}"; do
24422442
;;
24432443
esac
24442444

2445-
# Clean the product-local module cache.
2446-
call rm -rf "${module_cache}"
2447-
call mkdir -p "${module_cache}"
2448-
24492445
# Compute the generator output file to check for, to determine if we
24502446
# must reconfigure. We only handle Ninja for now.
24512447
#

0 commit comments

Comments
 (0)