Commit 0713007e authored by Mccaskey, Alex's avatar Mccaskey, Alex
Browse files

add ability to pass extra compiler flags for all qcor executions

parent 45302eb9
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -136,6 +136,10 @@ def main(argv=None):
        defaultFlags = ['-std=c++17', '-include', '@CMAKE_INSTALL_PREFIX@/include/qcor/qcor_lang_ext.hpp',
                        '-fplugin=@CMAKE_INSTALL_PREFIX@/clang-plugins/libqcor-syntax-handler@CMAKE_SHARED_LIBRARY_SUFFIX@']

    extra_flags = '@QCOR_EXTRA_COMPILER_FLAGS@'.split(' ')
    if len(extra_flags):
        defaultFlags += extra_flags

    extra_headers = '@QCOR_EXTRA_HEADERS@'.replace('"', '')
    qs_qir_gen_dll = '@QIR_GEN_DLL@'