Skip to content

Commit

Permalink
Fix android build failing during linking stage with 24.35.30872.22 tag
Browse files Browse the repository at this point in the history
-ffat-lto-objects flag ensures that the generated object files contain
both the intermediate representation (IR) used for LTO and the regular
machine code.
-fno-fat-lto-objects flag ensures that the generated object files
contain only the intermediate representation (IR) used for LTO, and not
the regular machine code.

With the -ffat-lto-objects flag, android build fails during linking.

Replaced -ffat-lto-objects with -fno-fat-lto-objects as a temporary
workaround to address android build issue.

Signed-off-by: JeevakaPrabu <jeevaka.badrappan@intel.com>
  • Loading branch information
JeevakaPrabu committed Oct 18, 2024
1 parent c95763c commit 804a75a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions libigdrcl.bp
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ cc_library_shared {

cppflags: [
"-flto=auto",
"-ffat-lto-objects",
"-fno-fat-lto-objects",
"-ftemplate-depth=1024",
"-mclflushopt",
"-mwaitpkg",
Expand Down Expand Up @@ -770,4 +770,4 @@ cc_library_shared {
"libneo_shared",
],

}
}
4 changes: 2 additions & 2 deletions libigdrcl_lib_release.bp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ cc_library_static {

cppflags: [
"-flto=auto",
"-ffat-lto-objects",
"-fno-fat-lto-objects",
"-ftemplate-depth=1024",
"-mclflushopt",
"-mwaitpkg",
Expand Down Expand Up @@ -255,4 +255,4 @@ cc_library_static {

],

}
}
4 changes: 2 additions & 2 deletions libneo_shared.bp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ cc_library_static {

cppflags: [
"-flto=auto",
"-ffat-lto-objects",
"-fno-fat-lto-objects",
"-ftemplate-depth=1024",
"-mclflushopt",
"-mwaitpkg",
Expand Down Expand Up @@ -508,4 +508,4 @@ cc_library_static {

],

}
}
4 changes: 2 additions & 2 deletions ocloc.bp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ cc_binary {

cppflags: [
"-flto=auto",
"-ffat-lto-objects",
"-fno-fat-lto-objects",
"-ftemplate-depth=1024",
"-mclflushopt",
"-mwaitpkg",
Expand Down Expand Up @@ -146,4 +146,4 @@ cc_binary {

],

}
}
4 changes: 2 additions & 2 deletions ocloc_lib.bp
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ cc_library_static {

cppflags: [
"-flto=auto",
"-ffat-lto-objects",
"-fno-fat-lto-objects",
"-ftemplate-depth=1024",
"-mclflushopt",
"-mwaitpkg",
Expand Down Expand Up @@ -274,4 +274,4 @@ cc_library_static {

],

}
}

0 comments on commit 804a75a

Please sign in to comment.