瀏覽代碼

Revert "Disable stripping for riscv64"

This reverts commit 1deeade634db32b1672b49ef99fdf678036c6b8d.

Reason for revert: create_minidebuginfo is fixed now.

Change-Id: I0cd6136b74d4af0e8a6b9718f6b7172b14522743
Elliott Hughes 1 年之前
父節點
當前提交
8cf3236519
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      cc/strip.go

+ 1 - 3
cc/strip.go

@@ -56,9 +56,7 @@ func (stripper *Stripper) NeedsStrip(actx android.ModuleContext) bool {
 	forceEnable := Bool(stripper.StripProperties.Strip.All) ||
 		Bool(stripper.StripProperties.Strip.Keep_symbols) ||
 		Bool(stripper.StripProperties.Strip.Keep_symbols_and_debug_frame)
-	// create_minidebuginfo doesn't work for riscv64 yet, disable stripping for now
-	riscv64 := actx.Arch().ArchType == android.Riscv64
-	return !forceDisable && (forceEnable || defaultEnable) && !riscv64
+	return !forceDisable && (forceEnable || defaultEnable)
 }
 
 // Keep this consistent with //build/bazel/rules/stripped_shared_library.bzl.