- 
                Notifications
    You must be signed in to change notification settings 
- Fork 26
Add support for building CPU-only kernels #284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
veryy niiice!
| foreach(_KERNEL_SRC {{'${' + kernel_name + '_SRC}'}}) | ||
| set_property( | ||
| SOURCE ${_KERNEL_SRC} | ||
| APPEND PROPERTY | ||
| COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CXX>:{{ cxx_flags }}>" | ||
| ) | ||
| endforeach() | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we set the flags for each source file separately ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IIRC we have to set it on the whole target otherwise, which would result in applying the flags for other kernels as well.
        
          
                lib/build-sets.nix
              
                Outdated
          
        
      | pkgsForCpu = pkgsForMetal; | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, is this intended ?
|  | ||
| metalSupport = buildConfig.metal or false; | ||
|  | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to not default to metalSupport if no backend is available and do that for cpu only
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's gooo
No description provided.