Writing a function to test and set compiler flags
