mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 20:44:26 +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']):
|
if in_ext in (self.env['c_ext'], self.env['asm_ext']):
|
||||||
cc = self.env['gcc']
|
cc = self.env['gcc']
|
||||||
if c_std is None:
|
if c_std is None:
|
||||||
std = path_properties.default_c_std
|
std = path_properties.PathProperties.default_c_std
|
||||||
else:
|
else:
|
||||||
std = c_std
|
std = c_std
|
||||||
elif in_ext == self.env['cxx_ext']:
|
elif in_ext == self.env['cxx_ext']:
|
||||||
cc = self.env['gxx']
|
cc = self.env['gxx']
|
||||||
if cxx_std is None:
|
if cxx_std is None:
|
||||||
std = path_properties.default_cxx_std
|
std = path_properties.PathProperties.default_cxx_std
|
||||||
else:
|
else:
|
||||||
std = cxx_std
|
std = cxx_std
|
||||||
os.makedirs(os.path.dirname(out_path), exist_ok=True)
|
os.makedirs(os.path.dirname(out_path), exist_ok=True)
|
||||||
|
|||||||
@@ -5,6 +5,8 @@ import os
|
|||||||
from shell_helpers import LF
|
from shell_helpers import LF
|
||||||
|
|
||||||
class PathProperties:
|
class PathProperties:
|
||||||
|
default_c_std = 'c11'
|
||||||
|
default_cxx_std = 'c++17'
|
||||||
default_properties = {
|
default_properties = {
|
||||||
'allowed_archs': None,
|
'allowed_archs': None,
|
||||||
'c_std': default_c_std,
|
'c_std': default_c_std,
|
||||||
@@ -142,8 +144,6 @@ def get(path):
|
|||||||
path_properties.set_path_components(path_components)
|
path_properties.set_path_components(path_components)
|
||||||
return path_properties
|
return path_properties
|
||||||
|
|
||||||
default_c_std = 'c11'
|
|
||||||
default_cxx_std = 'c++17'
|
|
||||||
gnu_extension_properties = {
|
gnu_extension_properties = {
|
||||||
'c_std': 'gnu11',
|
'c_std': 'gnu11',
|
||||||
'cc_pedantic': False,
|
'cc_pedantic': False,
|
||||||
|
|||||||
Reference in New Issue
Block a user