<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11528</bug_id>
          
          <creation_ts>2017-05-18 16:26:00 +0000</creation_ts>
          <short_desc>Enable simple toolchain switching</short_desc>
          <delta_ts>2025-07-14 10:33:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>2.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.3 M1</target_milestone>
          
          <blocked>9417</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>raj.khem</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>scott.branden</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>73335</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-05-18 16:26:00 +0000</bug_when>
    <thetext>It should be as simple to change toolchain as it is to change libc.

There&apos;s a few places where gcc is hardcoded such as base.bbclass:

BASE_DEFAULT_DEPS = &quot;virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}compilerlibs virtual/libc&quot;

meta-clang defines a TOOLCHAIN variable that can be set to gcc or clang, and changes what compiler is being used.  I think this should end up pulling in an include file such as the way TCLIBC is used, and oe-core can provide toolchain-gcc.inc with meta-clang providing toolchain-clang.inc.

Hopefully this will let us remove the nasty in clang.bbclass (https://github.com/kraj/meta-clang/blob/master/classes/clang.bbclass)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76819</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2017-09-14 07:03:05 +0000</bug_when>
    <thetext>This worked fine in 2.4 M2.  Fails with latest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76820</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2017-09-14 07:05:41 +0000</bug_when>
    <thetext>This worked fine in 2.4 M2.  Fails with latest</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76822</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Branden">scott.branden</who>
    <bug_when>2017-09-14 07:07:51 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; This worked fine in 2.4 M2.  Fails with latest

Sorry - I commented and modified the wrong Bug here</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100881</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-02-07 12:35:12 +0000</bug_when>
    <thetext>We might just make this in time for M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>102457</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2025-07-14 10:33:07 +0000</bug_when>
    <thetext>This merged in oe-core 45bdedd213aff8df3214b95ef2a8551c0abd93a0.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>