From 32b3ffba8b35bea9e32d9039a4a2e6e7fb60e617 Mon Sep 17 00:00:00 2001 From: Sri Krishna <89776117+Siddhanta007@users.noreply.github.com> Date: Thu, 3 Mar 2022 06:18:03 +0530 Subject: [PATCH] Update C++14_os_x.sublime-build Hi there, I am using mac with m1 chip. The above code worked with my clang compiler. --- C++14_os_x.sublime-build | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/C++14_os_x.sublime-build b/C++14_os_x.sublime-build index 841b74e..3568729 100644 --- a/C++14_os_x.sublime-build +++ b/C++14_os_x.sublime-build @@ -4,3 +4,10 @@ "shell": true, "working_dir" : "$file_path" } +// This works on clang compiler +{ +"cmd" : ["g++ -std=c++11 -Wall ${file_name} -o ${file_base_name} && ./$file_base_nameoutputf.in"], +"selector" : "source.c", +"shell": true, +"working_dir" : "$file_path" +}