Skip to content

Instantly share code, notes, and snippets.

@bdbaddog
Last active February 12, 2019 21:47
Show Gist options
  • Save bdbaddog/a93edd9134b3d5449503bf7ca82f5038 to your computer and use it in GitHub Desktop.
Save bdbaddog/a93edd9134b3d5449503bf7ca82f5038 to your computer and use it in GitHub Desktop.
--config=force repro
#include <stdio.h>
int some_func() {
printf("Yes");
return 0;
}
AddOption('--show_bug', action='store_true', dest='show_bug', default=False,
help="Show the config=force bug")
env=Environment()
conf = Configure(env)
if not conf.CheckCXXHeader('vector.h'):
print 'vector.h must be installed!'
# Don't need this to cause the issue
# env = conf.Finish()
if not GetOption('show_bug'):
print("Should work properly")
env=Environment()
else:
print("================================================================================================")
print("Should rebuild when not needed because Configure with --config=force ")
print("polutes the referenced environment's decider with a decider to force all config steps to rebuild")
print("When run with --debug=explain will show all sources/implicits as changed")
print("================================================================================================")
env.Object("myfile.c", CPPPATH=["."])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment