possible solution for the issue # 16

I created a function that calls the compiler based on the configuration chosen