Exemplo n.º 1
0
if not file_exists(build_dir):
    os.mkdir(build_dir)

# Switch to the build directory.
os.chdir(build_dir)

#=================================================
# Set the machine/compiler specific environment.
#=================================================

if machines_dir is not None:

    mach_settings = MachineCompilerSettings(options.compiler.lower(),
                                            compiler_xml,
                                            mpilib=options.mpilib,
                                            use_env_compiler=options.use_env_compiler,
                                            use_openmp=options.use_openmp)
    mach_settings.set_compiler_env()

#=================================================
# Functions to perform various stages of build.
#=================================================

def cmake_stage(name, test_spec_dir):
    """Run cmake in the current working directory.

    Arguments:
    name - Name for output messages.
    test_spec_dir - Test specification directory to run CMake on.
    """
Exemplo n.º 2
0
if not file_exists(build_dir):
    os.mkdir(build_dir)

# Switch to the build directory.
os.chdir(build_dir)

#=================================================
# Set the machine/compiler specific environment.
#=================================================

if machines_dir is not None:

    mach_settings = MachineCompilerSettings(
        options.compiler.lower(),
        compiler_xml,
        mpilib=options.mpilib,
        use_env_compiler=options.use_env_compiler,
        use_openmp=options.use_openmp)
    mach_settings.set_compiler_env()

#=================================================
# Functions to perform various stages of build.
#=================================================


def cmake_stage(name, test_spec_dir):
    """Run cmake in the current working directory.

    Arguments:
    name - Name for output messages.
    test_spec_dir - Test specification directory to run CMake on.
Exemplo n.º 3
0
# Create build directory if necessary.
build_dir = os.path.abspath(options.build_dir)

if not file_exists(build_dir):
    os.mkdir(build_dir)

# Switch to the build directory.
os.chdir(build_dir)

#=================================================
# Set the machine/compiler specific environment.
#=================================================

if machines_dir is not None:

    mach_settings = MachineCompilerSettings(options.compiler.lower(),
                                            compiler_xml, options.use_mpi)
    mach_settings.set_compiler_env()

#=================================================
# Functions to perform various stages of build.
#=================================================


def cmake_stage(name, test_spec_dir):
    """Run cmake in the current working directory.

    Arguments:
    name - Name for output messages.
    test_spec_dir - Test specification directory to run CMake on.
    """
    # Clear CMake cache.