Rollback of commit 5e6218ea4e83a7fadfe54c35488781da550ce13e.

*** Reason for rollback ***

Roll-forward with fix:
- Previous test did let the all_files group with the wrapper script, and it got removed when creating the actual change. Added it back

Tested with `./compile.sh determinism`

*** Original change description ***

Automated [] rollback of commit 87a58589d6770a6e9a0f998274bfe69f1feb6014.

*** Reason for rollback ***

The sandbox fix did not fix. More work is needed.

Fixes #1239

*** Original change description ***

Automated [] rollback of commit b4549fe8dfb29f87fd37b38bf21a5b4bef818b12.

*** Reason for rollback ***

Rollforward with fixes:
  - Quote single-quote in the environment exports
  - Exclude the following environment variables: _ and dotted names
  - Add the wrapper to the dependency of the crosstool chain so it gets shipped to the sandbox.

Hopefu...

--
MOS_MIGRATED_REVID=121667505
diff --git a/tools/cpp/osx_cc_wrapper.sh.tpl b/tools/cpp/osx_cc_wrapper.sh.tpl
index 5e66680..5ea4b52c 100644
--- a/tools/cpp/osx_cc_wrapper.sh.tpl
+++ b/tools/cpp/osx_cc_wrapper.sh.tpl
@@ -52,6 +52,9 @@
     fi
 done
 
+# Set-up the environment
+%{env}
+
 # Call the C++ compiler
 %{cc} "$@"