예제 #1
0
def j_flag(j=None):
    multiple_thread = environment.cpu_count()
    if environment.is_mingw32():
        multiple_thread = 1
    if j is not None and j is not 0:
        multiple_thread = j
    return ' -j ' + str(multiple_thread)
예제 #2
0
def j_flag(j=None):
    multiple_thread = environment.cpu_count()
    if environment.is_aarch64() or environment.is_mingw32():
        multiple_thread = 1
    if j != None and j != 0:
        multiple_thread = j
    return ' -j ' + str(multiple_thread)
예제 #3
0
파일: process.py 프로젝트: ryuichis/oclint
def j_flag(j=None):
    multiple_thread = environment.cpu_count()
    if environment.is_mingw32():
        multiple_thread = 1
    if j is not None and j is not 0:
        multiple_thread = j
    return ' -j ' + str(multiple_thread)
예제 #4
0
파일: cmake.py 프로젝트: Abioy/oclint
 def __init__(self, source_path):
     self.__source_path = source_path
     self.__cmd = 'cmake'
     if environment.is_mingw32():
         self.__cmd += ' -G "MSYS Makefiles"'
예제 #5
0
파일: cmake.py 프로젝트: Abioy/oclint
 def append_dict(self, dict):
     for key, value in dict.items():
         self.append(key, value, environment.is_mingw32())
     return self
예제 #6
0
파일: cmake.py 프로젝트: Abioy/oclint
 def str(self):
     cmd = self.__cmd + ' '
     if environment.is_mingw32():
         return cmd + self.__wrap_double_quote(self.__source_path)
     else:
         return cmd + self.__source_path
예제 #7
0
파일: cmake.py 프로젝트: joekain/oclint
 def __init__(self, source_path):
     self.__source_path = source_path
     self.__cmd = 'cmake'
     if environment.is_mingw32():
         self.__cmd += ' -G "MSYS Makefiles"'
예제 #8
0
파일: cmake.py 프로젝트: joekain/oclint
 def append_dict(self, dict):
     for key, value in dict.items():
         self.append(key, value, environment.is_mingw32())
     return self
예제 #9
0
파일: cmake.py 프로젝트: joekain/oclint
 def str(self):
     cmd = self.__cmd + ' '
     if environment.is_mingw32():
         return cmd + self.__wrap_double_quote(self.__source_path)
     else:
         return cmd + self.__source_path
예제 #10
0
 def use_ninja(self):
     if not environment.is_mingw32():
         self.__cmd += ' -G Ninja'
     return self
예제 #11
0
파일: cmake.py 프로젝트: oclint/oclint
 def use_ninja(self):
     if not environment.is_mingw32():
         self.__cmd += ' -G Ninja'
     return self