diff --git a/libc/startup/gpu/amdgpu/CMakeLists.txt b/libc/startup/gpu/amdgpu/CMakeLists.txt index e7c0aeafafd9a4..b54dc377a629b5 100644 --- a/libc/startup/gpu/amdgpu/CMakeLists.txt +++ b/libc/startup/gpu/amdgpu/CMakeLists.txt @@ -26,4 +26,7 @@ target_link_libraries( "--target=${LIBC_GPU_TARGET_TRIPLE}" "-flto" "-Wl,-mllvm,-amdgpu-lower-global-ctor-dtor=0" + # FIXME: This pass causes builds to take ~10x longer. Disable until the + # performance problems have been addressed. + "-Wl,-mllvm,-amdgpu-atomic-optimizations=0" )