Skip to content

Runconfig instead of many compiler flags #1195

@clangenb

Description

@clangenb

Compiler flags make CI testing difficult, it is easy to miss a feature flag, which will then not be tested at all. It might be better that we introduce RunConfigs that might lock like the following:

/// Naming to be defined
struct RunConfig {
     /// Sidechain, OffchainWorker, Teeracle
     mode: WorkerMode,

     /// DCAP, IAS. Probably not necessary. IAS will be deprecated soonish.
     attestation_type: AttestationType

     /// Hmm, can we find a way to compile EVM stuff without including it in the binary?
     /// I think this is hard, because we can't just include the `enclave-runtime` at process start like they do it in substrate with the wasm blob. 
     /// It will always be linked at compile time. Needs some more thought.
     with_evm: bool
 
    // what else??
}

Needs some more thought and testing to see if we can do this without decreasing the performance...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions