mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
userland: refix silly mistakes
This commit is contained in:
@@ -69,13 +69,13 @@ Default: build all examples that have their package dependencies met, e.g.:
|
||||
if in_ext in (self.env['c_ext'], self.env['asm_ext']):
|
||||
cc = self.env['gcc']
|
||||
if c_std is None:
|
||||
std = path_properties.default_c_std
|
||||
std = path_properties.PathProperties.default_c_std
|
||||
else:
|
||||
std = c_std
|
||||
elif in_ext == self.env['cxx_ext']:
|
||||
cc = self.env['gxx']
|
||||
if cxx_std is None:
|
||||
std = path_properties.default_cxx_std
|
||||
std = path_properties.PathProperties.default_cxx_std
|
||||
else:
|
||||
std = cxx_std
|
||||
os.makedirs(os.path.dirname(out_path), exist_ok=True)
|
||||
|
||||
@@ -5,6 +5,8 @@ import os
|
||||
from shell_helpers import LF
|
||||
|
||||
class PathProperties:
|
||||
default_c_std = 'c11'
|
||||
default_cxx_std = 'c++17'
|
||||
default_properties = {
|
||||
'allowed_archs': None,
|
||||
'c_std': default_c_std,
|
||||
@@ -142,8 +144,6 @@ def get(path):
|
||||
path_properties.set_path_components(path_components)
|
||||
return path_properties
|
||||
|
||||
default_c_std = 'c11'
|
||||
default_cxx_std = 'c++17'
|
||||
gnu_extension_properties = {
|
||||
'c_std': 'gnu11',
|
||||
'cc_pedantic': False,
|
||||
|
||||
Reference in New Issue
Block a user